-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* macOS build on Github CI * Remove Travis * Reduce XCode builds * Build Windows * Make Windows Builds work * removed qwt build from ci for now as it seemed optional and needs more refactoring * use correct exit codes for the three .bat files * upload a complete artifact including QT DLLs * make some parameters for the bat files CI-Friendly * No build for Ubuntu 16.04 Signed-off-by: Hannes Achleitner <[email protected]> Co-authored-by: Lukas Einfalt <[email protected]>
- Loading branch information
Showing
7 changed files
with
124 additions
and
51 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,83 @@ | ||
name: PullRequest | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
buildMac: | ||
name: Build macOS | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
xcode: [Xcode_12.2, Xcode_12.3, Xcode_11.7] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- name: Investigate available XCode versions | ||
run: ls -n /Applications/ | grep Xcode* | ||
- name: Set XCode Version | ||
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app | ||
- name: install qt | ||
run: brew install qt | ||
- name: install build environment | ||
run: scripts/install.sh | ||
- name: Build project | ||
run: scripts/build.sh | ||
- name: Archive artifact | ||
uses: actions/[email protected] | ||
if: ${{ success() }} | ||
with: | ||
name: DLT-macOS ${{ matrix.xcode }} | ||
path: build/release | ||
|
||
buildLinux: | ||
name: Build ${{ matrix.ubuntu }} | ||
strategy: | ||
matrix: | ||
ubuntu: [ubuntu-18.04, ubuntu-20.04] | ||
runs-on: ${{ matrix.ubuntu }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- name: install build environment | ||
run: scripts/install.sh | ||
- name: Build project | ||
run: scripts/build.sh | ||
- name: Archive artifact | ||
uses: actions/[email protected] | ||
if: ${{ success() }} | ||
with: | ||
name: DLT ${{ matrix.ubuntu }} | ||
path: build/release | ||
|
||
# windows build is work in progress | ||
buildWindows: | ||
name: Build Windows | ||
strategy: | ||
matrix: | ||
task: [parser, sdk] | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- name: Install qt | ||
uses: jurplel/install-qt-action@v2 | ||
with: | ||
mirror: http://ftp.fau.de/qtproject/ | ||
version: 5.12.10 | ||
- name: Build ${{ matrix.task }} | ||
run: $env:WORKSPACE=$env:GITHUB_WORKSPACE; $env:QTDIR=$env:Qt5_DIR.Replace('/','\'); ./build_${{ matrix.task }}_windows_qt5_MSVC.bat | ||
- name: Archive artifact | ||
uses: actions/[email protected] | ||
if: ${{ success() }} | ||
with: | ||
name: DLT ${{ matrix.task }} | ||
path: build/dist |
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
File renamed without changes.
File renamed without changes.