99
1010jobs :
1111 client :
12- strategy :
13- fail-fast : false
14- matrix :
15- settings :
16- - os : ubuntu-latest
17- name : linux-spa-client
18- bash : make release-linux-client-musl
19- - os : macos-latest
20- name : mac-spa-client
21- bash : make release-client-mac
22- - os : windows-latest
23- name : windows-spa-client
24- bash : make release-client-win
25- runs-on : ${{ matrix.settings.os }}
26- steps :
27- - name : Get version
28- uses : actions/checkout@v4
29- with :
30- submodules : true
31- - uses : Swatinem/rust-cache@v2
32- - name : Setup MUSL
33- if : matrix.settings.os == 'ubuntu-latest'
34- run : |
35- rustup target add x86_64-unknown-linux-musl
36- sudo apt-get -qq install musl-tools
37-
38- - name : Build Release
39- run : ${{ matrix.settings.bash }}
40-
41- - name : Upload artifact
42- uses : actions/upload-artifact@v4
43- with :
44- path : ./release/*
45- name : ${{ matrix.settings.name }}
46- if-no-files-found : error
12+ uses : ./.github/workflows/spa-client-build.yml
4713 docker :
4814 runs-on : ubuntu-latest
4915 steps :
@@ -97,10 +63,19 @@ jobs:
9763 path : ./release/*
9864 name : spa-server-linux-musl
9965 if-no-files-found : error
66+ release :
67+ runs-on : ubuntu-latest
68+ needs : [client, docker, binFile]
69+ steps :
70+ - name : Download all artifacts
71+ uses : actions/download-artifact@v4
72+ with :
73+ path : artifacts
74+ - name : list artifacts
75+ run : ls -R artifacts
10076 - name : Create Release
10177 uses : ncipollo/release-action@v1
102- if : ${{ ! startsWith(github.ref, 'refs/tags/') }}
10378 with :
104- artifacts : spa-server-*
105- token : ${{ secrets.YOUR_GITHUB_TOKEN }}
79+ artifacts : " artifacts/**/* "
80+ token : ${{ secrets.GITHUB_TOKEN }}
10681 draft : true
0 commit comments