forked from aspel/pobfrontend
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from bernhardfritz/migrating-from-travis-ci-to-…
…github-actions Migrating from Travis CI to GitHub Actions
- Loading branch information
Showing
8 changed files
with
81 additions
and
98 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: ci | ||
on: push | ||
jobs: | ||
build-OSX: | ||
runs-on: macos-10.15 | ||
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 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 |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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