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
This commit is contained in:
Jeff Epler 2022-01-23 09:42:23 -06:00 committed by GitHub
parent c817deeba2
commit 474f7896b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

43
.github/workflows/build.yml vendored Normal file
View file

@ -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"