19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- name : Checkout
22
- uses : actions/checkout@v4
22
+ uses : actions/checkout@v5
23
23
with :
24
24
fetch-depth : 0
25
25
persist-credentials : false
31
31
update-version-in : |
32
32
CMakeLists.txt:^\s*VERSION (\d+\.\d+\.\d+)
33
33
Cargo.toml:^version = "(\d+\.\d+\.\d+)"
34
+ README.md:^\s*GIT_TAG v(\d+\.\d+\.\d+)
35
+ README.md:^\s*fork_union\s*=\s*"(\d+\.\d+\.\d+)"
36
+ README.md:^\s*fork_union\s*=\s*\{\s*version\s*=\s*"(\d+\.\d+\.\d+)"
34
37
update-major-version-in : |
35
38
include/fork_union.hpp:^#define FORK_UNION_VERSION_MAJOR (\d+)
36
39
update-minor-version-in : |
@@ -40,29 +43,27 @@ jobs:
40
43
dry-run : " true"
41
44
42
45
test_ubuntu_gcc :
43
- name : Ubuntu (GCC 14 )
46
+ name : Ubuntu (GCC)
44
47
runs-on : ubuntu-24.04
45
48
env :
46
49
CC : gcc
47
50
CXX : g++
48
51
49
52
steps :
50
- - uses : actions/checkout@v4
51
- - run : git submodule update --init --recursive
53
+ - name : Checkout
54
+ uses : actions/checkout@v5
52
55
53
- # C/C++
54
56
- name : Build C/C++
55
57
run : |
56
58
sudo apt update
57
- sudo apt install -y cmake build-essential libomp-dev gcc-12 g++-12
59
+ sudo apt install -y cmake build-essential libomp-dev
58
60
cmake -B build_artifacts -D CMAKE_BUILD_TYPE=RelWithDebInfo
59
61
cmake --build build_artifacts --config RelWithDebInfo
60
62
- name : Test C++
61
63
run : |
62
- build_artifacts/scripts/ fork_union_test_cpp17
63
- build_artifacts/scripts/ fork_union_test_cpp20
64
+ build_artifacts/fork_union_test_cpp17
65
+ build_artifacts/fork_union_test_cpp20
64
66
65
- # Rust
66
67
- name : Set up Rust
67
68
run : |
68
69
rustup update stable
@@ -74,18 +75,17 @@ jobs:
74
75
run : cargo test
75
76
76
77
test_ubuntu_clang :
77
- name : Ubuntu (Clang 18 )
78
+ name : Ubuntu (Clang)
78
79
runs-on : ubuntu-24.04
79
80
env :
80
81
CC : clang
81
82
CXX : clang++
82
83
83
84
steps :
84
- - uses : actions/checkout@v4
85
- - run : git submodule update --init --recursive
85
+ - name : Checkout
86
+ uses : actions/checkout@v5
86
87
87
88
# C/C++
88
- # Clang 16 isn't available from default repos on Ubuntu 22.04, so we have to install it manually
89
89
- name : Build C/C++
90
90
run : |
91
91
sudo apt update
94
94
cmake --build build_artifacts --config RelWithDebInfo
95
95
- name : Test C++
96
96
run : |
97
- build_artifacts/scripts/ fork_union_test_cpp17
98
- build_artifacts/scripts/ fork_union_test_cpp20
97
+ build_artifacts/fork_union_test_cpp17
98
+ build_artifacts/fork_union_test_cpp20
99
99
100
- # Rust
101
100
- name : Set up Rust
102
101
run : |
103
102
rustup update stable
@@ -113,10 +112,9 @@ jobs:
113
112
runs-on : macos-14
114
113
115
114
steps :
116
- - uses : actions/checkout@v4
117
- - run : git submodule update --init --recursive
115
+ - name : Checkout
116
+ uses : actions/checkout@v5
118
117
119
- # C/C++
120
118
- name : Build C/C++
121
119
run : |
122
120
brew update
@@ -125,10 +123,9 @@ jobs:
125
123
cmake --build build_artifacts --config RelWithDebInfo
126
124
- name : Test C++
127
125
run : |
128
- build_artifacts/scripts/ fork_union_test_cpp17
129
- build_artifacts/scripts/ fork_union_test_cpp20
126
+ build_artifacts/fork_union_test_cpp17
127
+ build_artifacts/fork_union_test_cpp20
130
128
131
- # Rust
132
129
- name : Set up Rust
133
130
run : |
134
131
rustup update stable
@@ -143,21 +140,21 @@ jobs:
143
140
name : Windows
144
141
runs-on : windows-2022
145
142
steps :
146
- - uses : actions/checkout@v4
147
- - run : git submodule update --init --recursive
143
+ - name : Checkout
144
+ uses : actions/checkout@v5
148
145
149
- # C/C++
150
146
- name : Build C/C++
151
147
run : |
152
148
choco install cmake
153
149
cmake -B build_artifacts -D CMAKE_BUILD_TYPE=RelWithDebInfo
154
150
cmake --build build_artifacts --config RelWithDebInfo
151
+ - name : List build artifacts
152
+ run : Get-ChildItem -Recurse .\build_artifacts
155
153
- name : Test C++
156
154
run : |
157
- .\build_artifacts\scripts\ fork_union_test_cpp17.exe
158
- .\build_artifacts\scripts\ fork_union_test_cpp20.exe
155
+ .\build_artifacts\fork_union_test_cpp17.exe
156
+ .\build_artifacts\fork_union_test_cpp20.exe
159
157
160
- # Rust
161
158
- name : Set up Rust
162
159
run : |
163
160
rustup update stable
0 commit comments