From 30291c35323bf4aeabe5abd679da89f4c112f85e Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Tue, 13 Feb 2024 17:55:39 +0100 Subject: [PATCH] Update build and test action (#62) * Update to Ubuntu 22.04 * Pin actions with hash * Set default permissions --- .github/workflows/build-and-test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index f0a3f8b..9b397a3 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -12,18 +12,21 @@ on: branches: - main +permissions: + contents: read + jobs: build: name: Build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Install dependencies run: | sudo apt update sudo apt install cmake clang ninja-build - name: Checkout repository - uses: actions/checkout@v2 - - name: Initalize submodules + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Initialize submodules run : | git submodule update --init cd third_party/iree @@ -35,8 +38,8 @@ jobs: cd build cmake .. \ -GNinja \ - -DCMAKE_C_COMPILER=clang-10 \ - -DCMAKE_CXX_COMPILER=clang++-10 \ + -DCMAKE_C_COMPILER=clang-14 \ + -DCMAKE_CXX_COMPILER=clang++-14 \ -DIREE_HAL_DRIVER_DEFAULTS=OFF \ -DIREE_HAL_EXECUTABLE_LOADER_DEFAULTS=OFF \ -DIREE_HAL_EXECUTABLE_LOADER_VMVX_MODULE=ON \