update tutorials #137
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: C/C++ CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: make | |
run: make | |
- name: commit | |
run: | | |
git config --local user.email "github-actions[bot]@github.com" | |
git config --local user.name "github-actions[bot]" | |
git add * | |
git commit -m "Update to newest version with binaries" | |
- name: push | |
uses: chaoszhang/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: Linux | |
force: true | |
macos-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: make | |
run: make mac | |
- name: commit | |
run: | | |
git config --local user.email "github-actions[bot]@github.com" | |
git config --local user.name "github-actions[bot]" | |
git add * | |
git commit -m "Update to newest version with binaries" | |
- name: push | |
uses: chaoszhang/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: MacOS | |
force: true | |
windows-build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: configure | |
run: | | |
choco install cygwin --params="/InstallDir:C:\tools\cygwin /NoStartMenu /Package:make,gcc-g++" | |
echo "C:\tools\cygwin\bin" >> $GITHUB_PATH | |
- name: make | |
run: .\make.bat | |
- name: commit | |
run: | | |
git config --local user.email "github-actions[bot]@github.com" | |
git config --local user.name "github-actions[bot]" | |
git add * | |
git commit -m "Update to newest version with binaries" | |
- name: push | |
uses: chaoszhang/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: Windows | |
force: true |