-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (32 loc) · 1.27 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build and upload
on: workflow_dispatch
permissions:
contents: write
jobs:
build:
name: ${{ matrix.platform.name }}
strategy:
fail-fast: false
matrix:
platform:
- { name: 'Linux (x64)' ,os: ubuntu-22.04 }
# - { name: 'Linux (arm64)' ,os: ubuntu-22.04 ,arch: arm64 }
- { name: 'Windows (x64)' ,os: windows-2022 }
- { name: 'Mac (x64)' ,os: macos-12 }
- { name: 'Mac (arm64)' ,os: macos-12 ,arch: arm64 }
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- if: ${{ startsWith(matrix.platform.os, 'macos-') }}
run: ./scripts/install-deps-mac.sh
- if: ${{ startsWith(matrix.platform.os, 'ubuntu-') }}
run: ./scripts/install-deps-ubuntu.sh
- if: ${{ !startsWith(matrix.platform.os, 'ubuntu-') || matrix.platform.arch != 'arm64' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROSS_COMPILE_ARCH: ${{ matrix.platform.arch }}
run: npm run release
- if: ${{ startsWith(matrix.platform.os, 'ubuntu-') && matrix.platform.arch == 'arm64' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./scripts/release-rpi-qemu.sh