trigger CI on push main #7
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
name: GPU build and CPU build+tests | |
on: | |
push: { branches: [ 'main', '3d' ] } | |
jobs: | |
gpu-build: | |
strategy: | |
matrix: | |
sycl: ['acpp', 'intel-llvm'] | |
hw: ['a100', 'mi250'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/[email protected] | |
with: { tool-cache: true, large-packages: false } | |
- name: Checkout built branch | |
uses: actions/checkout@v3 | |
- name: Compile for GPUs | |
run: | | |
echo ${{ secrets.GH_ACCESS_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
cd docker | |
docker build . -t ci-container | |
docker run ci-container ./compile.sh --hw ${{matrix.hw}} --sycl ${{matrix.sycl}} | |
cpu-build-and-test: | |
strategy: | |
matrix: | |
sycl: ['acpp', 'intel-llvm'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/[email protected] | |
with: { tool-cache: true, large-packages: false } | |
- name: Checkout built branch | |
uses: actions/checkout@v3 | |
- name: Compile for CPU and run tests | |
run: | | |
echo ${{ secrets.GH_ACCESS_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
cd docker | |
docker build . -t ci-container | |
docker run ci-container ./compile.sh --hw x86_64 --sycl ${{matrix.sycl}} --build-tests --run-tests |