Skip to content

Commit c619207

Browse files
committed
release 2.4.0
1 parent 355983e commit c619207

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1326
-1257
lines changed

.github/workflows/spa-client-cd.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
name: spa-client release
44

55
on:
6-
push:
7-
tags:
8-
- 'v*'
96
workflow_dispatch:
107

118
jobs:
@@ -44,4 +41,12 @@ jobs:
4441
with:
4542
path: ./release/*
4643
name: ${{ matrix.settings.name }}
47-
if-no-files-found: error
44+
if-no-files-found: error
45+
46+
- name: Create Release
47+
uses: ncipollo/release-action@v1
48+
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
49+
with:
50+
artifacts: spa-client*
51+
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
52+
draft: true

.github/workflows/spa-server-cd.yml

+46-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: spa-server-docker release
1+
name: spa-server release
22

33
on:
44
push:
@@ -8,6 +8,42 @@ env:
88
REGISTRY: ghcr.io
99

1010
jobs:
11+
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
1147
docker:
1248
runs-on: ubuntu-latest
1349
steps:
@@ -59,5 +95,12 @@ jobs:
5995
uses: actions/upload-artifact@v4
6096
with:
6197
path: ./release/*
62-
name: spa-server-linux
63-
if-no-files-found: error
98+
name: spa-server-linux-musl
99+
if-no-files-found: error
100+
- name: Create Release
101+
uses: ncipollo/release-action@v1
102+
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
103+
with:
104+
artifacts: spa-server-*
105+
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
106+
draft: true

.github/workflows/spa-server-ci.yml

+38-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,31 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
changes:
12+
runs-on: ubuntu-latest
13+
# Required permissions
14+
permissions:
15+
pull-requests: read
16+
# Set job outputs to values from filter step
17+
outputs:
18+
check_server: ${{ steps.filter.outputs.check_server }}
19+
check_js_client: ${{ steps.filter.outputs.check_js_client }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
check_server:
27+
- 'client/**'
28+
- 'server/**'
29+
- 'Cargo.lock'
30+
check_js_sdk:
31+
- 'jsclient/**'
32+
1133
check_server:
34+
needs: changes
35+
if: ${{ needs.changes.outputs.check_server == 'true' }}
1236
runs-on: ubuntu-latest
1337
steps:
1438
- uses: actions/checkout@v4
@@ -26,4 +50,17 @@ jobs:
2650
- name: run spa-client test
2751
run: cargo test -p spa-client -j 1 -- --test-threads 1
2852
- name: run spa-server test
29-
run: cargo test -p spa-server
53+
run: cargo test -p spa-server
54+
check_js_client:
55+
needs: changes
56+
if: ${{ needs.changes.outputs.check_js_client == 'true' }}
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v4
60+
# Setup .npmrc file to publish to npm
61+
- uses: actions/setup-node@v4
62+
with:
63+
node-version: '20.x'
64+
cache: 'npm'
65+
cache-dependency-path: './jsclient/package-lock.json'
66+
- run: npm ci && npm run build

0 commit comments

Comments
 (0)