support legacy macos #29
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: ci | |
on: push | |
jobs: | |
build-OSX: | |
runs-on: macos-11 | |
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 |