-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (46 loc) · 1.41 KB
/
spa-client-cd.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
52
# this is from https://github.com/extrawurst/gitui/blob/master/.github/workflows/cd.yml
name: spa-client release
on:
workflow_dispatch:
jobs:
release:
strategy:
fail-fast: false
matrix:
settings:
- os: ubuntu-latest
name: linux-spa-client
bash: make release-linux-client-musl
- os: macos-latest
name: mac-spa-client
bash: make release-client-mac
- os: windows-latest
name: windows-spa-client
bash: make release-client-win
runs-on: ${{ matrix.settings.os }}
steps:
- name: Get version
uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Setup MUSL
if: matrix.settings.os == 'ubuntu-latest'
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Build Release
run: ${{ matrix.settings.bash }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: ./release/*
name: ${{ matrix.settings.name }}
if-no-files-found: error
- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: spa-client*
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
draft: true