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:
parent
c817deeba2
commit
474f7896b3
1 changed files with 43 additions and 0 deletions
43
.github/workflows/build.yml
vendored
Normal file
43
.github/workflows/build.yml
vendored
Normal 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"
|
||||
Loading…
Reference in a new issue