Simpler setup
This commit is contained in:
@@ -8,15 +8,20 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: release
|
name: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/archlinux/archlinux:latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
features: [arch, debian]
|
features: [arch, debian]
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install rust toolchain
|
||||||
|
run: pacman -Syy --noconfirm rust
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Compile and release
|
- name: Build
|
||||||
uses: rust-build/rust-build.action@v1.4.5
|
run: cargo build --release --features ${{ matrix.features }}
|
||||||
env:
|
- name: Create archive
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
run: tar czf pacdef-${{ matrix.features }}.tar.gz target/release/pacdef LICENCE README.md
|
||||||
RUSTTARGET: x86_64-unknown-linux-musl
|
- name: Upload to release
|
||||||
FEATURES: ${{ matrix.features }}
|
uses: softprops/action-gh-release@v1
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
with:
|
||||||
|
files: pacdef-pacdef-${{ matrix.features }}.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user