From f9917ba52e1a9daef01567d733ed068e18f3d683 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Thu, 19 Sep 2024 15:03:47 +0700 Subject: [PATCH] ci: specify runner OS version in workflows (#179) --- .github/workflows/build.yaml | 4 ++-- .github/workflows/check.yaml | 2 +- .github/workflows/test.yaml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7b88e73..aef5ed3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,11 +7,11 @@ on: jobs: build-project: name: Build Project - runs-on: ${{ matrix.os }}-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - os: [ubuntu, windows] + os: [ubuntu-22.04, windows-2022] steps: - name: Checkout uses: actions/checkout@v4.1.7 diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index f68a290..c9869f5 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -7,7 +7,7 @@ on: jobs: check-project: name: Check Project - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4.1.7 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a6f5b68..c5a1e69 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,11 +7,11 @@ on: jobs: test-project: name: Test Project - runs-on: ${{ matrix.os }}-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - os: [ubuntu, windows] + os: [ubuntu-22.04, windows-2022] steps: - name: Checkout uses: actions/checkout@v4.1.7 @@ -31,7 +31,7 @@ jobs: build-config: Debug - name: Check Coverage - if: ${{ matrix.os != 'windows' }} + if: ${{ matrix.os != 'windows-2022' }} uses: threeal/gcovr-action@v1.0.0 with: excludes: build/*