add workflows

Seto Elkahfi committed Aug 4, 2024 at 18:44 UTC 103cf572ca8384e9a0b0d625395ddd50d5bf69a6
2 files changed +46
.github/workflows/check-frontend-splitfire-desktop.yml new
+16
@@ -0,0 +1,16 @@
1 +name: Checks
2 +on:
3 + push:
4 +jobs:
5 + check-next-build:
6 + runs-on: ubuntu-latest
7 + steps:
8 + - uses: actions/checkout@v4
9 + - name: setup node
10 + uses: actions/setup-node@v4
11 + with:
12 + node-version-file: frontend/splitfire-desktop/.nvmrc
13 + - name: Check frontend build
14 + run: |
15 + npm install
16 + npm run next-build
\ No newline at end of file
.github/workflows/deploy-frontend-splitfire-desktop.yml new
+30
@@ -0,0 +1,30 @@
1 +name: Deploy Frontend Splitfire Desktop
2 +on:
3 + push:
4 + workflow_dispatch:
5 +jobs:
6 + publish:
7 + permissions:
8 + contents: write
9 + strategy:
10 + fail-fast: false
11 + matrix:
12 + include:
13 + - platform: "macos-latest" # for Arm based macs (M1 and above).
14 + args: "--target aarch64-apple-darwin"
15 + runs-on: ${{ matrix.platform }}
16 + steps:
17 + - uses: actions/checkout@v4
18 +
19 + - name: setup node
20 + uses: actions/setup-node@v4
21 + with:
22 + node-version-file: frontend/splitfire-desktop/.nvmrc
23 +
24 + - name: install Rust stable
25 + uses: dtolnay/rust-toolchain@stable
26 + with:
27 + # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
28 + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
29 + - name: install frontend dependencies
30 + run: npm install # change this to npm, pnpm or bun depending on which one you use.