2021-06-20 00:23:00 +00:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
2021-07-23 15:56:14 +00:00
|
|
|
tags: ['*']
|
2021-06-20 00:23:00 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: build and install cc65 components
|
2021-07-23 15:56:14 +00:00
|
|
|
run: >
|
|
|
|
git clone https://github.com/cc65/cc65 /tmp/cc65 &&
|
|
|
|
sudo make -C /tmp/cc65 ca65 ld65 avail &&
|
2021-06-20 00:23:00 +00:00
|
|
|
ca65 --version
|
|
|
|
|
2021-07-23 15:56:14 +00:00
|
|
|
- name: build and install cadius
|
|
|
|
run: >
|
|
|
|
git clone https://github.com/mach-kernel/cadius /tmp/cadius &&
|
|
|
|
make -C /tmp/cadius &&
|
|
|
|
sudo make -C /tmp/cadius install
|
|
|
|
|
2021-06-20 00:23:00 +00:00
|
|
|
- name: build
|
|
|
|
env:
|
|
|
|
TERM: xterm-256color
|
2021-07-23 15:56:14 +00:00
|
|
|
run: >
|
|
|
|
make && make package
|
|
|
|
|
|
|
|
- name: deploy new version
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
uses: ncipollo/release-action@v1.8.6
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
artifacts: "prodos-drivers.po"
|