Skip to content

Commit

Permalink
upload binary as build artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jun 15, 2024
1 parent 2788173 commit 5affb51
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
on: [push, pull_request]

name: Test
name: Build

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y musl-tools
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
- run: cargo build --release --target x86_64-unknown-linux-musl
- uses: actions/upload-artifact@v4
with:
name: lila-gif
path: target/x86_64-unknown-linux-musl/release/lila-gif

0 comments on commit 5affb51

Please sign in to comment.