replace idiotenbot's too specific versions #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
name: Build on Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install libpoppler-glib-dev poppler-utils libwxgtk3.0-gtk3-dev | |
- name: Bootstrap | |
run: ./bootstrap | |
- name: Configure | |
run: ./configure | |
- name: Build | |
run: make | |
- name: Build source tarball | |
run: make dist | |
- name: Upload source tarball | |
uses: actions/upload-artifact@v3 | |
with: | |
name: source-tarball | |
path: diff-pdf-*.tar.gz | |
build-windows: | |
name: Build on Windows | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup MSYS2 environment | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: UCRT64 | |
update: true | |
install: mingw-w64-ucrt-x86_64-gcc automake autoconf pkg-config make zip mingw-w64-ucrt-x86_64-poppler mingw-w64-ucrt-x86_64-wxWidgets | |
- name: Bootstrap | |
run: ./bootstrap | |
- name: Configure | |
run: ./configure | |
- name: Build | |
run: make | |
- name: Build Windows archive | |
run: make windows-dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: windows-binaries | |
path: diff-pdf*.zip | |
publish-release: | |
name: Publish release | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
needs: [build-linux, build-windows] | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: source-tarball | |
- uses: actions/download-artifact@v4 | |
with: | |
name: windows-binaries | |
- uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
prerelease: true | |
artifacts: "*.zip,*.tar.gz" | |
token: ${{ secrets.GITHUB_TOKEN }} |