Skip to content

Commit

Permalink
Simplify CI, don't merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jan 9, 2024
1 parent 54b7770 commit 78e0da0
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/BuildPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,60 @@ on:
- 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 Down

0 comments on commit 78e0da0

Please sign in to comment.