mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-20 18:51:19 +00:00
ci: specify runner OS version in workflows (#445)
This commit is contained in:
parent
ea14ff8ab1
commit
126b549d1c
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
build-package:
|
||||
name: Build Package
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
2
.github/workflows/check.yaml
vendored
2
.github/workflows/check.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
check-package:
|
||||
name: Check Package
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
16
.github/workflows/test.yaml
vendored
16
.github/workflows/test.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
test-package:
|
||||
name: Test Package
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
@ -25,11 +25,11 @@ jobs:
|
||||
|
||||
test-action:
|
||||
name: Test Action
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows, ubuntu, macos]
|
||||
os: [ubuntu-22.04, macos-14, windows-2022]
|
||||
steps:
|
||||
- name: Checkout Sample Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
@ -51,11 +51,11 @@ jobs:
|
||||
uses: ./cmake-action
|
||||
|
||||
- name: Run Sample Project
|
||||
run: ${{ steps.cmake-action.outputs.build-dir }}/${{ matrix.os == 'windows' && 'Debug/generate_sequence.exe' || 'generate_sequence' }} 5
|
||||
run: ${{ steps.cmake-action.outputs.build-dir }}/${{ matrix.os == 'windows-2022' && 'Debug/generate_sequence.exe' || 'generate_sequence' }} 5
|
||||
|
||||
test-action-with-specified-dirs:
|
||||
name: Test Action With Specified Directories
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Sample Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
@ -85,7 +85,7 @@ jobs:
|
||||
|
||||
test-action-without-run-build:
|
||||
name: Test Action Without Run Build
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Sample Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
@ -112,7 +112,7 @@ jobs:
|
||||
|
||||
test-action-with-additional-options:
|
||||
name: Test Action With Additional Options
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Sample Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
@ -139,7 +139,7 @@ jobs:
|
||||
|
||||
test-action-with-custom-generator:
|
||||
name: Test Action With Custom Generator
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout Sample Project
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
Loading…
Reference in New Issue
Block a user