mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2025-01-23 12:32:13 +00:00
Workflow: deploy on tag
This commit is contained in:
parent
ae13e28777
commit
304befcab2
26
.github/workflows/main.yml
vendored
26
.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:
|
||||||
@ -17,13 +16,26 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: build and install cc65 components
|
- name: build and install cc65 components
|
||||||
run: |
|
run: >
|
||||||
git clone https://github.com/cc65/cc65 /tmp/cc65
|
git clone https://github.com/cc65/cc65 /tmp/cc65 &&
|
||||||
sudo make -C /tmp/cc65 ca65 ld65 avail
|
sudo make -C /tmp/cc65 ca65 ld65 avail &&
|
||||||
ca65 --version
|
ca65 --version
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
- 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: "prodos-drivers.po"
|
||||||
|
5
Makefile
5
Makefile
@ -1,6 +1,6 @@
|
|||||||
targets := ns.clock cricket dclock selectors ram.drv quit
|
targets := ns.clock cricket dclock selectors ram.drv quit
|
||||||
|
|
||||||
.PHONY: all $(targets)
|
.PHONY: all $(targets) package
|
||||||
|
|
||||||
all: $(targets)
|
all: $(targets)
|
||||||
|
|
||||||
@ -17,3 +17,6 @@ clean:
|
|||||||
tput setaf 2 && echo "cleaning $$dir" && tput sgr0; \
|
tput setaf 2 && echo "cleaning $$dir" && tput sgr0; \
|
||||||
$(MAKE) -C $$dir clean; \
|
$(MAKE) -C $$dir clean; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
package:
|
||||||
|
./package.sh
|
||||||
|
27
package.sh
27
package.sh
@ -6,7 +6,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
PACKDIR=$(mktemp -d)
|
PACKDIR=$(mktemp -d)
|
||||||
IMGFILE="drivers.po"
|
IMGFILE="prodos-drivers.po"
|
||||||
VOLNAME="drivers"
|
VOLNAME="drivers"
|
||||||
|
|
||||||
rm -f "$IMGFILE"
|
rm -f "$IMGFILE"
|
||||||
@ -18,18 +18,19 @@ add_file () {
|
|||||||
cadius ADDFILE "$IMGFILE" "$3" "$PACKDIR/$2" --no-case-bits --quiet
|
cadius ADDFILE "$IMGFILE" "$3" "$PACKDIR/$2" --no-case-bits --quiet
|
||||||
}
|
}
|
||||||
|
|
||||||
add_file "bbb/out/buhbye.system.SYS" "buhbye.system#FF0000" "/$VOLNAME"
|
add_file "cricket/out/cricket.system.SYS" "cricket.system#FF0000" "/$VOLNAME"
|
||||||
add_file "bbb/out/bbb.system.SYS" "bbb.system#FF0000" "/$VOLNAME"
|
add_file "cricket/out/date.BIN" "date#062000" "/$VOLNAME/CRICKET.UTIL"
|
||||||
add_file "selector/out/selector.system.SYS" "selector.system#FF0000" "/$VOLNAME"
|
add_file "cricket/out/set.date.BIN" "set.date#062000" "/$VOLNAME/CRICKET.UTIL"
|
||||||
add_file "cricket/out/cricket.system.SYS" "cricket.system#FF0000" "/$VOLNAME"
|
add_file "cricket/out/set.time.BIN" "set.time#062000" "/$VOLNAME/CRICKET.UTIL"
|
||||||
add_file "cricket/out/date.BIN" "date#062000" "/$VOLNAME/CRICKET.UTIL"
|
add_file "cricket/out/test.BIN" "test#062000" "/$VOLNAME/CRICKET.UTIL"
|
||||||
add_file "cricket/out/set.date.BIN" "set.date#062000" "/$VOLNAME/CRICKET.UTIL"
|
add_file "dclock/out/dclock.system.SYS" "dclock.system#FF0000" "/$VOLNAME"
|
||||||
add_file "cricket/out/set.time.BIN" "set.time#062000" "/$VOLNAME/CRICKET.UTIL"
|
add_file "ns.clock/out/ns.clock.system.SYS" "ns.clock.system#FF0000" "/$VOLNAME"
|
||||||
add_file "cricket/out/test.BIN" "test#062000" "/$VOLNAME/CRICKET.UTIL"
|
add_file "quit/out/quit.system.SYS" "quit.system#FF0000" "/$VOLNAME"
|
||||||
add_file "ns.clock/out/ns.clock.system.SYS" "ns.clock.system#FF0000" "/$VOLNAME"
|
add_file "ram.drv/out/ram.drv.system.SYS" "ram.drv.system#FF0000" "/$VOLNAME"
|
||||||
add_file "dclock/out/dclock.system.SYS" "dclock.system#FF0000" "/$VOLNAME"
|
add_file "selectors/out/bbb.system.SYS" "bbb.system#FF0000" "/$VOLNAME"
|
||||||
add_file "quit/out/quit.system.SYS" "quit.system#FF0000" "/$VOLNAME"
|
add_file "selectors/out/buhbye.system.SYS" "buhbye.system#FF0000" "/$VOLNAME"
|
||||||
add_file "ram.drv/out/ram.drv.system.SYS" "ram.drv.system#FF0000" "/$VOLNAME"
|
add_file "selectors/out/bye.system.SYS" "bye.system#FF0000" "/$VOLNAME"
|
||||||
|
add_file "selectors/out/selector.system.SYS" "selector.system#FF0000" "/$VOLNAME"
|
||||||
|
|
||||||
rm -r "$PACKDIR"
|
rm -r "$PACKDIR"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user