Skip to content

Commit

Permalink
release 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
timzaak committed Aug 4, 2024
1 parent 355983e commit c619207
Show file tree
Hide file tree
Showing 59 changed files with 1,326 additions and 1,257 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/spa-client-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
name: spa-client release

on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -44,4 +41,12 @@ jobs:
with:
path: ./release/*
name: ${{ matrix.settings.name }}
if-no-files-found: error
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
49 changes: 46 additions & 3 deletions .github/workflows/spa-server-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: spa-server-docker release
name: spa-server release

on:
push:
Expand All @@ -8,6 +8,42 @@ env:
REGISTRY: ghcr.io

jobs:
client:
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
docker:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -59,5 +95,12 @@ jobs:
uses: actions/upload-artifact@v4
with:
path: ./release/*
name: spa-server-linux
if-no-files-found: error
name: spa-server-linux-musl
if-no-files-found: error
- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: spa-server-*
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
draft: true
39 changes: 38 additions & 1 deletion .github/workflows/spa-server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,31 @@ on:
workflow_dispatch:

jobs:
changes:
runs-on: ubuntu-latest
# Required permissions
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
check_server: ${{ steps.filter.outputs.check_server }}
check_js_client: ${{ steps.filter.outputs.check_js_client }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
check_server:
- 'client/**'
- 'server/**'
- 'Cargo.lock'
check_js_sdk:
- 'jsclient/**'
check_server:
needs: changes
if: ${{ needs.changes.outputs.check_server == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,4 +50,17 @@ jobs:
- name: run spa-client test
run: cargo test -p spa-client -j 1 -- --test-threads 1
- name: run spa-server test
run: cargo test -p spa-server
run: cargo test -p spa-server
check_js_client:
needs: changes
if: ${{ needs.changes.outputs.check_js_client == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
cache-dependency-path: './jsclient/package-lock.json'
- run: npm ci && npm run build
Loading

0 comments on commit c619207

Please sign in to comment.