mirror of
https://github.com/a2stuff/basys33.git
synced 2025-01-05 03:31:38 +00:00
Workflows: Use actions for cadius and ca65, package and deploy on tag
This commit is contained in:
parent
256d838eb3
commit
a47a16828a
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
@ -3,10 +3,9 @@ name: build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
tags: ['*']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -15,15 +14,18 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: a2stuff/build-install-ca65-action@v1
|
||||||
- name: build and install cc65 components
|
- uses: a2stuff/build-install-cadius-action@v1
|
||||||
run: |
|
|
||||||
git clone https://github.com/cc65/cc65 /tmp/cc65
|
|
||||||
sudo make -C /tmp/cc65 ca65 ld65 avail
|
|
||||||
ca65 --version
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
env:
|
env:
|
||||||
TERM: xterm-256color
|
TERM: xterm-256color
|
||||||
run: |
|
run: >
|
||||||
make
|
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: "out/prodos-path.po"
|
||||||
|
5
Makefile
5
Makefile
@ -11,7 +11,7 @@ TARGETS = \
|
|||||||
|
|
||||||
XATTR := $(shell command -v xattr 2> /dev/null)
|
XATTR := $(shell command -v xattr 2> /dev/null)
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all package
|
||||||
all: $(OUTDIR) $(TARGETS)
|
all: $(OUTDIR) $(TARGETS)
|
||||||
|
|
||||||
$(OUTDIR):
|
$(OUTDIR):
|
||||||
@ -22,6 +22,9 @@ clean:
|
|||||||
rm -f $(OUTDIR)/*.list
|
rm -f $(OUTDIR)/*.list
|
||||||
rm -f $(TARGETS)
|
rm -f $(TARGETS)
|
||||||
|
|
||||||
|
package:
|
||||||
|
./package.sh
|
||||||
|
|
||||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
$(OUTDIR)/%.o: %.s $(HEADERS)
|
||||||
ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
|
ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user