Skip to content

Commit ed1874f

Browse files
committed
WIP: rename jobs to try to get github to run actions
1 parent e9da708 commit ed1874f

File tree

3 files changed

+119
-117
lines changed

3 files changed

+119
-117
lines changed

.github/workflows/cmake-test-all.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
os:
5+
required: true
6+
type: string
7+
os_version:
8+
required: true
9+
type: string
10+
compiler:
11+
required: true
12+
type: string
13+
triplet:
14+
required: true
15+
type: string
16+
variant:
17+
required: true
18+
type: string
19+
20+
jobs:
21+
cmake-test:
22+
name: ${{ matrix.os }}-${{ matrix.os_version }}-${{ matrix.compiler }}-${{ matrix.variant }}
23+
runs-on: ${{ matrix.os }}-${{ matrix.os_version }}
24+
strategy:
25+
fail-fast: false
26+
env:
27+
CXX: ${{ matrix.compiler }}
28+
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
29+
VCPKG_DISABLE_METRICS: true
30+
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
31+
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/.cache
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
submodules: true
37+
38+
- uses: ilammy/msvc-dev-cmd@v1
39+
40+
- uses: friendlyanon/setup-vcpkg@v1
41+
with:
42+
committish: 2025.12.12
43+
# getting a warning when cache exists, so just save/restore ourselves
44+
cache: false
45+
46+
- uses: actions/cache@v4
47+
with:
48+
# vcpkg always builds release, so share cache between debug and release
49+
key: vcpkg-${{ matrix.os }}-${{ matrix.os_version }}-${{ matrix.compiler }}-${{ hashFiles('vcpkg.json', '.github/vcpkg_overlays/**') }}
50+
path: |
51+
${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
52+
53+
- run: cmake --preset ${{ matrix.variant }}
54+
55+
- name: Run cmake --build --parallel --preset ${{ matrix.variant }}
56+
run: |
57+
echo "::add-matcher::.github/cmake-problem-matcher.json"
58+
cmake --build --parallel --preset ${{ matrix.variant }}
59+
60+
- run: ./firestarr -h
61+
62+
- run: ctest --output-on-failure --preset ${{ matrix.variant }}
63+
64+
- run: ./firestarr . 2024-06-03 58.81228184403946 -122.9117103995713 01:00 --ffmc 89.9 --dmc 59.5 --dc 450.9 --apcp_prev 0 -v --wx ./test/input/10N_50651/firestarr_10N_50651_wx.csv --output_date_offsets [1] --tz -5 --raster-root ./test/input/10N_50651/ --perim ./test/input/10N_50651/10N_50651.tif

.github/workflows/cmake-test.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1+
name: cmake-test
2+
13
on:
2-
workflow_call:
3-
inputs:
4-
os:
5-
required: true
6-
type: string
7-
os_version:
8-
required: true
9-
type: string
10-
compiler:
11-
required: true
12-
type: string
13-
triplet:
14-
required: true
15-
type: string
16-
variant:
17-
required: true
18-
type: string
4+
push:
5+
branches: [ "*" ]
6+
pull_request:
7+
branches: [ "*" ]
198

209
jobs:
21-
cmake-test:
22-
name: ${{ matrix.os }}-${{ matrix.os_version }}-${{ matrix.compiler }}-${{ matrix.variant }}
23-
runs-on: ${{ matrix.os }}-${{ matrix.os_version }}
10+
cmake-test-macos:
11+
uses: ./.github/workflows/cmake-test-on.yml
12+
with:
13+
os: ${{ matrix.os }}
14+
os_version: ${{ matrix.os_version }}
15+
compiler: ${{ matrix.compiler }}
16+
triplet: ${{ matrix.triplet }}
17+
build_type: ${{ matrix.build_type }}
2418
strategy:
2519
fail-fast: false
26-
env:
27-
CXX: ${{ matrix.compiler }}
28-
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
29-
VCPKG_DISABLE_METRICS: true
30-
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
31-
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/.cache
32-
33-
steps:
34-
- uses: actions/checkout@v4
35-
with:
36-
submodules: true
37-
38-
- uses: ilammy/msvc-dev-cmd@v1
39-
40-
- uses: friendlyanon/setup-vcpkg@v1
41-
with:
42-
committish: 2025.12.12
43-
# getting a warning when cache exists, so just save/restore ourselves
44-
cache: false
45-
46-
- uses: actions/cache@v4
47-
with:
48-
# vcpkg always builds release, so share cache between debug and release
49-
key: vcpkg-${{ matrix.os }}-${{ matrix.os_version }}-${{ matrix.compiler }}-${{ hashFiles('vcpkg.json', '.github/vcpkg_overlays/**') }}
50-
path: |
51-
${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
20+
matrix:
21+
os: [macos]
22+
os_version: [latest]
23+
compiler: [clang++]
24+
variant: [Debug, Release]
5225

53-
- run: cmake --preset ${{ matrix.variant }}
54-
55-
- name: Run cmake --build --parallel --preset ${{ matrix.variant }}
56-
run: |
57-
echo "::add-matcher::.github/cmake-problem-matcher.json"
58-
cmake --build --parallel --preset ${{ matrix.variant }}
26+
cmake-test-ubuntu:
27+
uses: ./.github/workflows/cmake-test-on.yml
28+
with:
29+
os: ${{ matrix.os }}
30+
os_version: ${{ matrix.os_version }}
31+
compiler: ${{ matrix.compiler }}
32+
triplet: ${{ matrix.triplet }}
33+
build_type: ${{ matrix.build_type }}
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
os: [ubuntu]
38+
os_version: [latest]
39+
compiler: [clang++, g++]
40+
variant: [Debug, Release]
5941

60-
- run: ./firestarr -h
42+
cmake-test-windows:
43+
uses: ./.github/workflows/cmake-test-on.yml
44+
with:
45+
os: ${{ matrix.os }}
46+
os_version: ${{ matrix.os_version }}
47+
compiler: ${{ matrix.compiler }}
48+
triplet: ${{ matrix.triplet }}
49+
build_type: ${{ matrix.build_type }}
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
os: [windows]
54+
os_version: [latest]
55+
compiler: [cl]
56+
variant: [Debug, Release]
6157

62-
- run: ctest --output-on-failure --preset ${{ matrix.variant }}
58+
cmake-test:
59+
needs: [cmake-test-ubuntu, cmake-test-macos, cmake-test-windows]
60+
runs-on: ubuntu-latest
6361

64-
- run: ./firestarr . 2024-06-03 58.81228184403946 -122.9117103995713 01:00 --ffmc 89.9 --dmc 59.5 --dc 450.9 --apcp_prev 0 -v --wx ./test/input/10N_50651/firestarr_10N_50651_wx.csv --output_date_offsets [1] --tz -5 --raster-root ./test/input/10N_50651/ --perim ./test/input/10N_50651/10N_50651.tif
62+
steps:
63+
- run: |
64+
echo "All tests completed"

0 commit comments

Comments
 (0)