Fix compiling #40
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: Build | |
on: | |
push: | |
branches: | |
- "master" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ps2dev/ps2dev:latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install dependencies | |
run: | | |
apk add build-base git bash | |
- name: Increment our tag | |
id: tag_version | |
uses: mathieudutour/github-tag-action@v6.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
release_branches: master | |
custom_release_rules: "release:major:New release!" | |
- uses: actions/checkout@v2 | |
- run: | | |
git config --global --add safe.directory /__w/biosdrain/biosdrain | |
git fetch --prune --unshallow --tags | |
- name: Compile project | |
run: | | |
make clean all | |
mkdir binaries | |
cp biosdrain.elf binaries/biosdrain.elf | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
if: steps.tag_version.outputs.new_tag | |
with: | |
prerelease: true | |
generate_release_notes: true | |
files: | | |
binaries/biosdrain.elf | |
tag_name: ${{ steps.tag_version.outputs.new_tag }} | |