Address similar concern to the one about closures with move-only call… #43
This file contains hidden or 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: Build+deploy to single_header. | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup | |
| run: | | |
| mkdir ${{github.workspace}}/pcpp | |
| pip install -t ${{github.workspace}}/pcpp pcpp | |
| - name: Build | |
| continue-on-error: true | |
| run: PYTHONPATH=${{github.workspace}}/pcpp:$PYTHONPATH python3 ${{github.workspace}}/pcpp/bin/pcpp -I ${{github.workspace}}/include --passthru-defines --passthru-comments --line-directive -o ${{github.workspace}}/onebig.hpp ${{github.workspace}}/include/boost/parser/split.hpp ${{github.workspace}}/include/boost/parser/replace.hpp ${{github.workspace}}/include/boost/parser/transcode_view.hpp | |
| - name: Deploy | |
| working-directory: ${{github.workspace}} | |
| run: | | |
| git fetch | |
| git switch single_header | |
| mv ${{github.workspace}}/onebig.hpp ${{github.workspace}}/include/boost/parser/parser_unified.hpp | |
| if [ `git diff` ] ; then | |
| git config user.name 'Zach Laine' | |
| git config user.email 'whatwasthataddress@gmail.com' | |
| git commit -am 'Generated by Github action on push to master.' | |
| git push | |
| fi |