Skip to content

release 2.4.0

release 2.4.0 #9

Workflow file for this run

name: spa-server release
on:
push:
tags:
- 'v*'
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:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GithubPackages
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and push spa-server
uses: docker/build-push-action@v2
with:
context: .
#platforms: linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ${{ env.REGISTRY }}/fornetcode/spa-server:${{github.ref_name}}, ${{ env.REGISTRY }}/fornetcode/spa-server:latest
# - name: build and push spa-server with S3
# uses: docker/build-push-action@v2
# with:
# context: "{{defaultContext}}:docker"
# file: S3FS.Dockerfile
# push: true
# cache-from: type=gha
# cache-to: type=gha,mode=max
# tags: ${{ env.REGISTRY }}/fornetcode/spa-server:${{github.event.inputs.version}}-s3
binFile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Setup MUSL
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Build Release Linux
run: make release-linux-server-musl
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: ./release/*
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