-
Notifications
You must be signed in to change notification settings - Fork 26
131 lines (121 loc) · 3.46 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: Autorelease
on:
push:
branches:
- "master"
jobs:
build-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
repository: 'davidgiven/cpm65'
path: 'cpm65'
- name: apt
run: sudo apt update && sudo apt install cc1541 cpmtools libfmt-dev fp-compiler moreutils srecord 64tass libreadline-dev
- name: install llvm-mos
run: |
wget -O - https://github.com/llvm-mos/llvm-mos-sdk/releases/latest/download/llvm-mos-linux.tar.xz | tar xJf - -C $HOME
- name: make
run: make -C cpm65 LLVM=$HOME/llvm-mos/bin
- name: date
run: |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: tag
run: |
cd cpm65
git config user.name "davidgiven"
git config user.email "[email protected]"
git tag -f dev
git push -f origin dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: delete-old-assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: dev
assets: |
apple2e.po
apple2e_b.po
atari800.atr
atari800b.atr
atari800c.atr
atari800hd.atr
atari800xlhd.atr
bbcmicro.ssd
c64.d64
kim-1-iec.zip
kim-1-k1013.zip
kim-1-sdcard.zip
nano6502.img
nano6502_sysonly.img
neo6502.zip
oricatmos.dsk
osi400f.os8
osi400mf.os5
osi500f.os8
osi500mf.os5
osi600f.os8
osi600mf.os5
osi600mf80.osi
osiserv.os8
osif-b.os8
osimf-b.os5
osimf-c.os5
osimf-d.os5
osimf80-b.osi
osimf80-c.osi
osimf80-d.osi
osiserf.os8
pet4032.d64
pet8032.d64
pet8096.d64
snes.smc
vic20.d64
x16.zip
fail-if-no-assets: false
- name: release
uses: softprops/action-gh-release@v1
with:
name: Development build ${{ env.RELEASE_DATE }}
files: |
cpm65/images/apple2e.po
cpm65/images/atari800.atr
cpm65/images/atari800b.atr
cpm65/images/atari800c.atr
cpm65/images/atari800hd.atr
cpm65/images/atari800xlhd.atr
cpm65/images/bbcmicro.ssd
cpm65/images/c64.d64
cpm65/images/kim-1-iec.zip
cpm65/images/kim-1-k1013.zip
cpm65/images/kim-1-sdcard.zip
cpm65/images/nano6502.img
cpm65/images/nano6502_sysonly.img
cpm65/images/neo6502.zip
cpm65/images/oric.dsk
cpm65/images/osi400f.os8
cpm65/images/osi400mf.os5
cpm65/images/osi500f.os8
cpm65/images/osi500mf.os5
cpm65/images/osi600f.os8
cpm65/images/osi600mf.os5
cpm65/images/osi600mf80.osi
cpm65/images/osif-b.os8
cpm65/images/osimf-b.os5
cpm65/images/osimf-c.os5
cpm65/images/osimf-d.os5
cpm65/images/osimf80-b.osi
cpm65/images/osimf80-c.osi
cpm65/images/osimf80-d.osi
cpm65/images/osiserf.os8
cpm65/images/pet4032.d64
cpm65/images/pet8032.d64
cpm65/images/pet8096.d64
cpm65/images/snes.smc
cpm65/images/vic20.d64
cpm65/images/x16.zip
tag_name: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}