Fix Linux CLAP strip command #92
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 Linux | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'feature/*' | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| name: Build Linux | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Fix up git URLs | |
| run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig | |
| shell: bash | |
| - uses: actions/checkout@v1 | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| submodules: recursive | |
| - name: "Run script" | |
| run: | | |
| export OS="linux" | |
| ./ci/build.sh | |
| shell: bash | |
| env: | |
| APIKEY: ${{ secrets.APIKEY }} | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: SN76489_Linux | |
| path: ci/bin/*.zip | |
| retention-days: 30 | |
| - name: Extract Changelog | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| VERSION="${GITHUB_REF_NAME#v}" | |
| awk -v ver="$VERSION" ' | |
| BEGIN { found=0; printing=0; pattern="^"ver":?$" } | |
| $0 ~ pattern { found=1; printing=1; next } | |
| printing && /^[0-9]+\.[0-9]+\.[0-9]+:?$/ { printing=0 } | |
| printing { print } | |
| ' ./Changelist.txt > /tmp/release_notes.txt | |
| shell: bash | |
| - name: Upload to GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: ci/bin/*.zip | |
| body_path: /tmp/release_notes.txt |