Skip to content

trigger CI on push main #7

trigger CI on push main

trigger CI on push main #7

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