-
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.
Add testing with released LLVM 13.0 to CI
- Loading branch information
Showing
6 changed files
with
197 additions
and
32 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
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 |
---|---|---|
|
@@ -95,7 +95,6 @@ jobs: | |
name: ispc_llvm11_linux | ||
path: build/ispc-trunk-linux.tar.gz | ||
|
||
|
||
linux-build-ispc-llvm12: | ||
needs: [define-flow] | ||
runs-on: ubuntu-latest | ||
|
@@ -132,6 +131,42 @@ jobs: | |
name: ispc_llvm12_linux | ||
path: build/ispc-trunk-linux.tar.gz | ||
|
||
linux-build-ispc-llvm13: | ||
needs: [define-flow] | ||
runs-on: ubuntu-latest | ||
env: | ||
LLVM_VERSION: "13.0" | ||
LLVM_TAR: llvm-13.0.0-ubuntu16.04-Release+Asserts-x86.arm.wasm.tar.xz | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
.github/workflows/scripts/install-build-deps.sh | ||
- name: Check environment | ||
run: | | ||
./check_env.py | ||
which -a clang | ||
cat /proc/cpuinfo | ||
- name: Build package | ||
run: | | ||
.github/workflows/scripts/build-ispc.sh | ||
- name: Sanity testing (make check-all, make test) | ||
run: | | ||
.github/workflows/scripts/check-ispc.sh | ||
- name: Upload package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ispc_llvm13_linux | ||
path: build/ispc-trunk-linux.tar.gz | ||
|
||
linux-test-llvm11: | ||
needs: [define-flow, linux-build-ispc-llvm11] | ||
runs-on: ubuntu-latest | ||
|
@@ -158,7 +193,8 @@ jobs: | |
- name: Running tests | ||
run: | | ||
echo PATH=$PATH | ||
./alloy.py -r --only="stability current ${{ needs.define-flow.outputs.tests_optsets }}" --only-targets="${{ matrix.target }}" --time --update-errors=FP | ||
# Just sanity check for 11.1 | ||
./alloy.py -r --only="stability current -O2" --only-targets="avx2-i32x8" --time --update-errors=FP | ||
- name: Check | ||
run: | | ||
|
@@ -212,11 +248,51 @@ jobs: | |
name: fail_db.llvm12.${{matrix.target}}.txt | ||
path: fail_db.txt | ||
|
||
linux-test-llvm13: | ||
needs: [define-flow, linux-build-ispc-llvm13] | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: ${{fromJson(needs.define-flow.outputs.tests_matrix_targets)}} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download package | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ispc_llvm13_linux | ||
|
||
- name: Install dependencies and unpack artifacts | ||
run: | | ||
.github/workflows/scripts/install-test-deps.sh | ||
- name: Check environment | ||
run: | | ||
cat /proc/cpuinfo | ||
- name: Running tests | ||
run: | | ||
echo PATH=$PATH | ||
./alloy.py -r --only="stability current ${{ needs.define-flow.outputs.tests_optsets }}" --only-targets="${{ matrix.target }}" --time --update-errors=FP | ||
- name: Check | ||
run: | | ||
# Print fails to the log. | ||
git diff --exit-code | ||
- name: Upload fail_db.txt | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: fail_db.llvm13.${{matrix.target}}.txt | ||
path: fail_db.txt | ||
|
||
# Debug run is experimental with the purpose to see if it's capable to catch anything. | ||
# So it's running in "full" mode only for now. | ||
# Single target, as it should be representative enough. | ||
linux-test-debug-llvm12: | ||
needs: [define-flow, linux-build-ispc-llvm12] | ||
linux-test-debug-llvm13: | ||
needs: [define-flow, linux-build-ispc-llvm13] | ||
if: ${{ needs.define-flow.outputs.flow_type == 'full' }} | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
|
@@ -227,7 +303,7 @@ jobs: | |
- name: Download package | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ispc_llvm12_linux | ||
name: ispc_llvm13_linux | ||
|
||
- name: Install dependencies and unpack artifacts | ||
run: | | ||
|
@@ -251,7 +327,7 @@ jobs: | |
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: fail_db.llvm12.debug.txt | ||
name: fail_db.llvm13.debug.txt | ||
path: fail_db.txt | ||
|
||
win-build-ispc-llvm11: | ||
|
@@ -336,6 +412,46 @@ jobs: | |
name: ispc_llvm12_win | ||
path: build/ispc-trunk-windows.msi | ||
|
||
win-build-ispc-llvm13: | ||
needs: [define-flow] | ||
runs-on: windows-latest | ||
env: | ||
LLVM_VERSION: "13.0" | ||
LLVM_TAR: llvm-13.0.0-win.vs2019-Release+Asserts-x86.arm.wasm.tar.7z | ||
LLVM_HOME: "C:\\projects\\llvm" | ||
CROSS_TOOLS_GNUWIN32: "C:\\projects\\cross\\gnuwin32" | ||
BUILD_TYPE: "Release" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Install dependencies | ||
run: | | ||
.github/workflows/scripts/install-build-deps.ps1 | ||
- name: Check environment | ||
shell: cmd | ||
run: | | ||
wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status | ||
- name: Build package | ||
run: | | ||
.github/workflows/scripts/build-ispc.ps1 | ||
- name: Sanity testing (make check-all, make test) | ||
run: | | ||
.github/workflows/scripts/check-ispc.ps1 | ||
- name: Upload package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ispc_llvm13_win | ||
path: build/ispc-trunk-windows.msi | ||
|
||
win-test-llvm11: | ||
needs: [define-flow, win-build-ispc-llvm11] | ||
|
@@ -369,7 +485,8 @@ jobs: | |
run: | | ||
$env:ISPC_HOME = "$pwd" | ||
.github/workflows/scripts/load-vs-env.ps1 "${{ matrix.arch }}" | ||
python .\alloy.py -r --only="stability ${{ matrix.arch }} current ${{ needs.define-flow.outputs.tests_optsets }}" --only-targets="${{ matrix.target }}" --time --update-errors=FP | ||
# Just sanity check for 11.1 | ||
python .\alloy.py -r --only="stability ${{ matrix.arch }} current -O2" --only-targets="avx2-i32x8" --time --update-errors=FP | ||
- name: Check | ||
run: | | ||
|
@@ -430,3 +547,49 @@ jobs: | |
name: fail_db.llvm12.${{matrix.arch}}.${{matrix.target}}.txt | ||
path: fail_db.txt | ||
|
||
win-test-llvm13: | ||
needs: [define-flow, win-build-ispc-llvm13] | ||
env: | ||
LLVM_HOME: "C:\\projects\\llvm" | ||
runs-on: windows-latest | ||
continue-on-error: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [x86, x86-64] | ||
target: ${{fromJson(needs.define-flow.outputs.tests_matrix_targets)}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download package | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ispc_llvm13_win | ||
|
||
- name: Install dependencies | ||
run: | | ||
.github/workflows/scripts/install-test-deps.ps1 | ||
- name: Check environment | ||
shell: cmd | ||
run: | | ||
wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status | ||
- name: Running tests | ||
run: | | ||
$env:ISPC_HOME = "$pwd" | ||
.github/workflows/scripts/load-vs-env.ps1 "${{ matrix.arch }}" | ||
python .\alloy.py -r --only="stability ${{ matrix.arch }} current ${{ needs.define-flow.outputs.tests_optsets }}" --only-targets="${{ matrix.target }}" --time --update-errors=FP | ||
- name: Check | ||
run: | | ||
# Print fails to the log. | ||
git diff --exit-code | ||
- name: Upload fail_db.txt | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: fail_db.llvm13.${{matrix.arch}}.${{matrix.target}}.txt | ||
path: fail_db.txt | ||
|
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
Oops, something went wrong.