diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8ed826e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +name: Build + +on: + push: + pull_request: + release: + types: [published] + check_suite: + types: [rerequested] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: install deps + run: sudo apt install vice cc65 + + - name: build toolchain + run: make toolchain-exomizer -j$(nproc) + + - name: build 80columns + run: make -j$(nproc) + + - uses: actions/upload-artifact@v2 + with: + name: artifacts + path: | + *.d64 + *.prg + + - name: Create release + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 + with: + files: | + *.d64 + fail_on_unmatched_files: true + body: "Automatically created release"