From 76b40f55d551cc2c95087efa097af5787cba4390 Mon Sep 17 00:00:00 2001 From: Gustavo Karkow <14905932+karkowg@users.noreply.github.com> Date: Fri, 8 Nov 2024 13:51:38 -0500 Subject: [PATCH] chore: attempt 1/1231823 trying to build binary as release artifacts --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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..e14c6a4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Release + +on: + push: + branches: + - "3.x" + tags: + - "v*" + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ ubuntu-latest, macos-latest ] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up permissions to execute build script for Linux/macOS + if: ${{ matrix.os != 'windows-latest' }} + run: chmod +x build-mupdf.sh + + - name: Build mutool + shell: bash + run: ./build-mupdf.sh + + - name: Save binary + run: | + mkdir -p dist + cp bin/mutool dist/mutool-${{ matrix.os }}${{ matrix.os == 'windows-latest' && '.exe' || '' }} + + - name: Upload binary artifact + uses: actions/upload-artifact@v4 + with: + name: mutool-${{ matrix.os }} + path: dist/mutool-${{ matrix.os }}*