Skip to content

Commit

Permalink
XXX REMOVE ME
Browse files Browse the repository at this point in the history
  • Loading branch information
tasn committed Aug 29, 2023
1 parent cb8d91a commit b48e904
Showing 1 changed file with 3 additions and 54 deletions.
57 changes: 3 additions & 54 deletions .github/workflows/server-release.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,11 @@
name: Server Release

on:
release:
types: [published]
push:
branches:
- tom/arm64

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
os: windows-latest
extension: ".exe"

- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
extension: ""

- target: x86_64-apple-darwin
os: macos-latest
extension: ""

- target: aarch64-apple-darwin
os: macos-latest
extension: ""
steps:
- uses: actions/checkout@master

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
target: ${{ matrix.target }}

- name: Install musl for x86_64-unknown-linux-musl
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
run: sudo apt-get install -y musl-dev musl-tools

- name: Compile server
uses: actions-rs/cargo@v1
with:
command: build
args: --target ${{ matrix.target }} --release --manifest-path server/svix-server/Cargo.toml

- name: Release
uses: actions/upload-artifact@v3
with:
name: svix-server-${{ matrix.target }}
path: server/target/${{ matrix.target }}/release/svix-server${{ matrix.extension }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker:
name: release docker
runs-on: ubuntu-latest
Expand Down Expand Up @@ -84,6 +34,5 @@ jobs:
with:
context: ./server
file: ./server/Dockerfile
push: true
tags: ${{ env.DOCKER_TAGS }}
platforms: linux/amd64,linux/arm64

0 comments on commit b48e904

Please sign in to comment.