Skip to content

ci: Remove Windows and macOS server releases #1421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 5 additions & 30 deletions .github/workflows/server-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,22 @@ env:

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: ""
name: release x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ 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
run: cargo build --target ${{ matrix.target }} --release --manifest-path server/svix-server/Cargo.toml
run: cargo build --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 }}
name: svix-server-x86_64-unknown-linux-gnu
path: server/target/release/svix-server
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down