-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (35 loc) · 1.15 KB
/
generate-single-header.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Generate Single Header"
on:
push:
branches: [ main ]
jobs:
run:
name: Generate
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@master
with:
token: ${{ secrets.PAT }}
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Build
run: |
brew install gcc@14 binutils
brew link --force binutils
cmake -E make_directory ${{runner.workspace}}/build
cd ${{runner.workspace}}/build
cmake ${GITHUB_WORKSPACE} -DCMAKE_CXX_COMPILER=g++-14 -DFLUX_BUILD_TOOLS=On
cmake --build . --target make_single_header
- name: Run
working-directory: ${{runner.workspace}}/build
run: |
./tools/make_single_header ${GITHUB_WORKSPACE}/include/flux.hpp ${GITHUB_WORKSPACE}/single_include/flux.hpp
- name: Upload
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update single header
file_pattern: 'single_include/*'
commit_user_name: Github Actions Bot