Skip to content

Commit

Permalink
chore: attempt 1/1231823 trying to build binary as release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
karkowg committed Nov 8, 2024
1 parent 816f078 commit 76b40f5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}*

0 comments on commit 76b40f5

Please sign in to comment.