Open main branch for development #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |