File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ name: build
3
3
on :
4
4
push :
5
5
branches : [ main ]
6
+ tags : ['*']
6
7
pull_request :
7
8
branches : [ main ]
8
-
9
- # Allows you to run this workflow manually from the Actions tab
10
9
workflow_dispatch :
11
10
12
11
jobs :
@@ -15,15 +14,18 @@ jobs:
15
14
16
15
steps :
17
16
- uses : actions/checkout@v2
18
-
19
- - name : build and install cc65 components
20
- run : |
21
- git clone https://github.com/cc65/cc65 /tmp/cc65
22
- sudo make -C /tmp/cc65 ca65 ld65 avail
23
- ca65 --version
17
+ - uses : a2stuff/build-install-ca65-action@v1
18
+ - uses : a2stuff/build-install-cadius-action@v1
24
19
25
20
- name : build
26
21
env :
27
22
TERM : xterm-256color
28
- run : |
29
- make
23
+ run : >
24
+ make && make package
25
+
26
+ - name : deploy new version
27
+ if : startsWith(github.ref, 'refs/tags/')
28
+
29
+ with :
30
+ token : ${{ secrets.GITHUB_TOKEN }}
31
+ artifacts : " out/chtype.po"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ TARGETS = $(OUTDIR)/chtype.BIN $(OUTDIR)/chtime.BIN
8
8
9
9
XATTR := $(shell command -v xattr 2> /dev/null)
10
10
11
- .PHONY : clean all
11
+ .PHONY : clean all package
12
12
all : $(OUTDIR ) $(TARGETS )
13
13
14
14
$(OUTDIR ) :
21
21
rm -f $(OUTDIR ) /* .list
22
22
rm -f $(TARGETS )
23
23
24
+ package :
25
+ ./package.sh
24
26
25
27
$(OUTDIR ) /% .o : % .s $(HEADERS )
26
28
ca65 $(CAFLAGS ) $(DEFINES ) --listing $(basename $@ ) .list -o $@ $<
You can’t perform that action at this time.
0 commit comments