Skip to content

Merge pull request #3 from bernhardfritz/support-legacy-macos #33

Merge pull request #3 from bernhardfritz/support-legacy-macos

Merge pull request #3 from bernhardfritz/support-legacy-macos #33

Workflow file for this run

name: ci
on: push
jobs:
build-OSX:
runs-on: macos-12
env:
LDFLAGS: -L/usr/local/opt/qt@5/lib
CPPFLAGS: -I/usr/local/opt/qt@5/include
PKG_CONFIG_PATH: /usr/local/opt/qt@5/lib/pkgconfig
HOMEBREW_CURLRC: 1
steps:
- run: echo "/usr/local/opt/qt@5/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
- run: brew install make
- run: brew install ninja
- run: echo insecure >> ~/.curlrc
- run: make -f Makefile.darwin clean
- run: make -f Makefile.darwin tools
- run: make -f Makefile.darwin
- run: tar -cf - PathOfBuilding.app | xz -c > PathOfBuilding.darwin.tar.xz
- uses: actions/upload-artifact@v3
with:
name: build
path: PathOfBuilding.darwin.tar.xz
build-Linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y build-essential
- run: sudo apt-get install -y ninja-build
- run: make -f Makefile.linux clean
- run: make -f Makefile.linux tools
- run: make -f Makefile.linux
- run: tar -cf - PathOfBuilding | xz -c > PathOfBuilding.linux.tar.xz
- run: tar -cf - -C ${GITHUB_WORKSPACE}/PathOfBuilding/ $(ls -A ${GITHUB_WORKSPACE}"/PathOfBuilding/") | xz -c > PathOfBuilding.linux.tar.xz
- uses: actions/upload-artifact@v3
with:
name: build
path: PathOfBuilding.linux.tar.xz
deploy:
runs-on: ubuntu-latest
needs: [build-OSX, build-Linux]
steps:
- uses: actions/download-artifact@v3
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/PathOfBuilding.darwin.tar.xz
build/PathOfBuilding.linux.tar.xz