Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate CI for Windows #406

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 61 additions & 56 deletions .github/workflows/BuildPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,62 @@ on:
branches:
- master
pull_request:
branches:
- master

jobs:
buildMac:
name: Build macOS
runs-on: ${{ matrix.macos }}
strategy:
matrix:
macos: [ macos-12 ]
xcode: [ Xcode_14.1.0 ]
steps:
- name: Checkout
uses: actions/checkout@v4
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 build environment
run: scripts/darwin/install.sh
- name: Show cmake version
run: cmake --version
- name: Build project
run: scripts/darwin/build.sh
- name: Archive artifact
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: DLTViewer-${{ matrix.macos }}-x86_64
path: build/dist/DLTViewer*.tgz

buildLinux:
name: Build ${{ matrix.ubuntu }}
strategy:
matrix:
ubuntu: [ ubuntu-20.04 ]
runs-on: ${{ matrix.ubuntu }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: install build environment
run: scripts/linux/install.sh
- name: Build project
run: scripts/linux/build.sh
- name: Make artifact executable
run: chmod -R +x build/dist
- name: Archive artifact
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: DLTViewer-linux-x86_64
path: build/dist/DLTViewer*.tgz
# buildMac:
# name: Build macOS
# runs-on: ${{ matrix.macos }}
# strategy:
# matrix:
# macos: [ macos-12 ]
# xcode: [ Xcode_14.1.0 ]
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# 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 build environment
# run: scripts/darwin/install.sh
# - name: Show cmake version
# run: cmake --version
# - name: Build project
# run: scripts/darwin/build.sh
# - name: Archive artifact
# uses: actions/upload-artifact@v4
# if: ${{ success() }}
# with:
# name: DLTViewer-${{ matrix.macos }}-x86_64
# path: build/dist/DLTViewer*.tgz
#
# buildLinux:
# name: Build ${{ matrix.ubuntu }}
# strategy:
# matrix:
# ubuntu: [ ubuntu-20.04 ]
# runs-on: ${{ matrix.ubuntu }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# submodules: true
# - name: install build environment
# run: scripts/linux/install.sh
# - name: Build project
# run: scripts/linux/build.sh
# - name: Make artifact executable
# run: chmod -R +x build/dist
# - name: Archive artifact
# uses: actions/upload-artifact@v4
# if: ${{ success() }}
# with:
# name: DLTViewer-linux-x86_64
# path: build/dist/DLTViewer*.tgz

buildWindows:
name: Build Windows
Expand All @@ -76,6 +74,13 @@ jobs:
with:
fetch-depth: 0
submodules: true
- name: Investigate
run: |
echo %path%
echo $env:PATH
dir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
echo "::add-path::C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"
- name: Install qt
uses: jurplel/install-qt-action@v3
with:
Expand Down
Loading