-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (43 loc) · 1.3 KB
/
build_gui_artifacts.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
43
44
45
46
47
48
49
50
51
name: Build GUI Artifacts
on:
workflow_dispatch:
workflow_call:
jobs:
build:
name: Build
strategy:
matrix:
target:
- target: linux
os: ubuntu-latest
make: bash dist/build-linux.sh
artifact_path: "target/release/artifact/*"
- target: windows
os: windows-latest
make: powershell dist/build-windows.ps1
artifact_path: "target/release/artifact/*"
- target: macos
os: macos-latest
make: bash dist/build-macos.sh
artifact_path: "target/release/artifact/*"
runs-on: ${{ matrix.target.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target
key: ${{ runner.os }}-release-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-release-
- name: Build
run: ${{ matrix.target.make }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target.target }}
path: ${{ matrix.target.artifact_path }}