mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
34 lines
719 B
YAML
34 lines
719 B
YAML
name: Build
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
build-package:
|
|
name: Build Package
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4.0.0
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Enable Yarn
|
|
run: corepack enable yarn
|
|
|
|
- name: Cache Dependencies
|
|
uses: actions/cache@v3.3.2
|
|
with:
|
|
path: .yarn
|
|
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
|
|
|
- name: Install Dependencies
|
|
run: yarn install
|
|
|
|
- name: Build Package
|
|
run: yarn build && git diff --exit-code HEAD
|