From 98a2a983a9d1ab37cfb8658ded0ab8b9bde405df Mon Sep 17 00:00:00 2001 From: Guillem Borrell Nogueras Date: Mon, 26 Dec 2022 20:33:50 +0100 Subject: [PATCH] Build binaries in github.com --- .github/workflows/main.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..030f3c7 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,28 @@ +on: + push: + tags: + - '*' + +jobs: + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + 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 tar.zst + - target: x86_64-apple-darwin + archive: zip + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@v1.4.0 + env: + GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file