From 3b7ddf53312c5161e2b50d29b5349403f0f86187 Mon Sep 17 00:00:00 2001 From: Keval Kapdee Date: Thu, 28 Mar 2024 15:53:02 +0000 Subject: [PATCH] Simpler setup --- .github/workflows/release.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09cd9cc..6a1bfd5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,15 +8,20 @@ jobs: release: name: release runs-on: ubuntu-latest + container: + image: ghcr.io/archlinux/archlinux:latest strategy: matrix: - features: [arch, debian] + features: [arch, debian] steps: + - name: Install rust toolchain + run: pacman -Syy --noconfirm rust - uses: actions/checkout@master - - name: Compile and release - uses: rust-build/rust-build.action@v1.4.5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RUSTTARGET: x86_64-unknown-linux-musl - FEATURES: ${{ matrix.features }} - EXTRA_FILES: "README.md LICENSE" + - name: Build + run: cargo build --release --features ${{ matrix.features }} + - name: Create archive + run: tar czf pacdef-${{ matrix.features }}.tar.gz target/release/pacdef LICENCE README.md + - name: Upload to release + uses: softprops/action-gh-release@v1 + with: + files: pacdef-pacdef-${{ matrix.features }}.tar.gz