forked from KhronosGroup/OpenCL-CTS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Github Actions CI and add Windows (KhronosGroup#1413)
- Add one Windows build to Github Actions - Remove Appveyor config - Move a few build steps out of the script - Use Ninja as the generator (makes for more readable logs) - Add build cache (except on Windows where it seems to break) Change-Id: Ida90ee1842af98aff86e5144ab7b9766480378c9 Signed-off-by: Kevin Petit <[email protected]>
- Loading branch information
Showing
3 changed files
with
41 additions
and
73 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,30 +3,51 @@ on: [push, pull_request] | |
|
||
jobs: | ||
build: | ||
name: Build ${{ matrix.os }} ${{ matrix.name }} | ||
name: Build ${{ matrix.os }} ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
JOB_ARCHITECTURE: ${{ matrix.arch }} | ||
JOB_ENABLE_GL: ${{ matrix.gl }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
mainmatrix: [true] | ||
os: [ubuntu-20.04, macos-latest] | ||
os: [ubuntu-20.04, macos-latest, windows-latest] | ||
include: | ||
- os: ubuntu-20.04 | ||
mainmatrix: true | ||
gl: 1 | ||
- os: ubuntu-20.04 | ||
mainmatrix: false | ||
name: Arm | ||
arch: arm | ||
- os: ubuntu-20.04 | ||
mainmatrix: false | ||
name: AArch64 | ||
arch: aarch64 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Setup OpenGL build dependencies | ||
if: ${{ matrix.gl }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev libglew-dev | ||
- name: Setup MSVC with Ninja | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
variant: sccache | ||
key: ${{ matrix.os }}-${{ matrix.arch }} | ||
- name: Fetch OpenCL Headers | ||
shell: bash | ||
run: | | ||
git clone https://github.com/KhronosGroup/OpenCL-Headers.git | ||
cd OpenCL-Headers | ||
ln -s CL OpenCL # For OSX builds | ||
cd .. | ||
- name: Build | ||
shell: bash | ||
run: ./presubmit.sh | ||
formatcheck: | ||
name: Check code format | ||
|
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