From 1d11b00976a7cba6c3e6fe06fbcbc2921bc307fe Mon Sep 17 00:00:00 2001 From: 34n0 <34n0@immerda.ch> Date: Fri, 22 Dec 2023 02:27:12 +0100 Subject: [PATCH] ci build --- .github/workflows/release.yml | 36 ++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed32855..aac5443 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,20 +4,30 @@ on: branches: [ main ] pull_request: branches: [ main ] -env: - CARGO_TERM_COLOR: always - BUILD_TARGET: x86_64-unknown-linux-musl - BINARY_NAME: libpam-authramp + jobs: build: + name: Build runs-on: ubuntu-latest + strategy: + matrix: + target: + - target.x86_64-unknown-linux-gnu steps: - - uses: actions/checkout@v2 - - name: Build-musl - uses: gmiam/rust-musl-action@master - with: - args: cargo build --target $BUILD_TARGET --release - - uses: actions/upload-artifact@v2 - with: - name: ${{ env.BINARY_NAME }} - path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}* \ No newline at end of file + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: ${{ matrix.target }} + override: true + - uses: actions-rs/cargo@v1 + with: + command: build + args: --release --target=${{ matrix.target }} + - uses: actions/upload-artifact@v4 + with: + name: libpam-authramp + path: | + target/release/libpam_authramp.so + LICENSE + README.md \ No newline at end of file