From 474f7896b324314fe7cd8c985a74129e8f799a68 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sun, 23 Jan 2022 09:42:23 -0600 Subject: [PATCH] Build the project with github actions (#12) * Build the project with github actions This produces a zip file with all the .prg files as well as the d64 image. * try attaching files to a release * only release d64 file * rely on cc65 from os packages --- .github/workflows/build.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build.yml 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"