From 9f88395317db8a34e508ba09e131579ac73b9fb5 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sat, 5 Mar 2022 15:46:24 +0000 Subject: [PATCH] chore(ci): test release CI --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/rust.yaml | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3d70b6d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release Build + +on: + release: + types: [created] + +jobs: + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + container: ubuntu:devel + strategy: + fail-fast: false + matrix: + include: + - target: x86_64-pc-windows-gnu + archive: zip + - target: x86_64-unknown-linux-musl + archive: tar.gz tar.xz + - target: x86_64-apple-darwin + archive: zip + + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index ae8ad9b..ddbdb96 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -1,4 +1,4 @@ -name: Rust build and test +name: Rust Build and Test on: push: