Skip to content

Commit 13661bf

Browse files
committed
Better github workflows
1 parent 52510c1 commit 13661bf

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

.github/workflows/on-branches-ci-and-upload-nightly.yml renamed to .github/workflows/on-main-push-ci-nightly.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci and upload nightly on branches
1+
name: CI and nightly build
22

33
permissions:
44
contents: read
@@ -7,8 +7,7 @@ permissions:
77
on:
88
push:
99
branches:
10-
- master
11-
- preview
10+
- main
1211

1312
jobs:
1413
build-windows:
@@ -20,7 +19,7 @@ jobs:
2019
uses: actions/checkout@v6
2120

2221
- name: make (Windows)
23-
run: make -f makefile.win compile test
22+
run: make -f windows.makefile compile test
2423

2524
- name: Upload nightly build
2625
uses: actions/upload-artifact@v6
@@ -37,7 +36,7 @@ jobs:
3736
uses: actions/checkout@v6
3837

3938
- name: make (Linux)
40-
run: make -f makefile.linux compile test
39+
run: make -f linux.makefile compile test
4140

4241
- name: Upload nightly build
4342
uses: actions/upload-artifact@v6
@@ -54,7 +53,7 @@ jobs:
5453
uses: actions/checkout@v6
5554

5655
- name: make (MacOS)
57-
run: make -f makefile.macos compile test
56+
run: make -f macos.makefile compile test
5857

5958
- name: Upload nightly build
6059
uses: actions/upload-artifact@v6

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"files.associations": {
3-
"makefile.*": "makefile"
3+
"*.makefile": "makefile"
44
},
55
//
66
"editor.insertSpaces": false,

.vscode/tasks.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
{
77
"label": "make",
88
"type": "shell",
9-
"command": "mingw32-make -f makefile.win",
9+
"command": "mingw32-make -f windows.makefile",
1010
"group": {
1111
"kind": "build",
1212
"isDefault": true
1313
},
14+
"problemMatcher": "$gcc",
1415
"presentation": {
1516
"echo": true,
1617
"reveal": "silent",
@@ -21,4 +22,4 @@
2122
}
2223
}
2324
]
24-
}
25+
}

makefile.linux renamed to linux.makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ REMOVE=rm
1919
# main makefile
2020
#
2121

22-
include makefile.common
22+
include shared.makefile

makefile.macos renamed to macos.makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ REMOVE=rm
1919
# main makefile
2020
#
2121

22-
include makefile.common
22+
include shared.makefile

readme.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,13 @@ As the MSX palette is not well defined, with several emulators using slightly di
342342
</tr>
343343
</table>
344344

345-
<sup>1</sup> TI TMS9918 palette, according Wikipedia (https://en.wikipedia.org/wiki/Texas_Instruments_TMS9918#Colors)
345+
<sup>1</sup> TI TMS9918 palette, according Wikipedia [wikipedia.org/wiki/Texas_Instruments_TMS9918#Colors](https://en.wikipedia.org/wiki/Texas_Instruments_TMS9918#Colors)
346346

347347
<sup>2</sup> TI TMS9219 and V9938 palettes from hap's meisei emulator
348348

349-
<sup>3</sup> Palette used by pixel artist <a href="https://twitter.com/Yazioh">@Yazioh</a>, because of reasons
349+
<sup>3</sup> Palette used by pixel artist [@Yazioh](https://twitter.com/Yazioh), because of reasons
350350

351-
<sup>4</sup> TOSHIBA palette from reidrac's MSX Pixel Tools (https://github.com/reidrac/msx-pixel-tools)
351+
<sup>4</sup> TOSHIBA palette from reidrac's MSX Pixel Tools [github.com/reidrac/msx-pixel-tools](https://github.com/reidrac/msx-pixel-tools)
352352

353353
Transparent pixels are indexed from the following values:
354354

makefile.common renamed to shared.makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,16 @@ $(TMX2BIN): src/tmx2bin.c $(COMMON_DEPS_C) $(COMMON_DEPS_TMX_C) $(COMMON_DEPS_H)
104104
# test targets
105105
#
106106

107-
test/charset.pcx.chr test/charset.pcx.clr: $(PCX2MSX) test/charset.pcx
107+
test/charset.pcx.chr test/charset.pcx.clr &: $(PCX2MSX) test/charset.pcx
108108
$(PCX2MSX) -v test/charset.pcx
109109

110-
test/charset.png.chr test/charset.png.clr: $(PNG2MSX) test/charset.png
110+
test/charset.png.chr test/charset.png.clr &: $(PNG2MSX) test/charset.png
111111
$(PNG2MSX) -v test/charset.png
112112

113-
test/bigsprites.pcx.spat.asm test/bigsprites.pcx.spr.asm: $(PCX2SPRPLUS) test/bigsprites.pcx
113+
test/bigsprites.pcx.spat.asm test/bigsprites.pcx.spr.asm &: $(PCX2SPRPLUS) test/bigsprites.pcx
114114
$(PCX2SPRPLUS) -v -vv -w24 -h32 test/bigsprites.pcx
115115

116-
test/bigsprites.png.spat.asm test/bigsprites.png.spr.asm: $(PNG2SPRPLUS) test/bigsprites.png
116+
test/bigsprites.png.spat.asm test/bigsprites.png.spr.asm &: $(PNG2SPRPLUS) test/bigsprites.png
117117
$(PNG2SPRPLUS) -v -vv -w24 -h32 test/bigsprites.png
118118

119119
test/screen.tmx.bin: $(TMX2BIN) test/screen.tmx
@@ -122,7 +122,7 @@ test/screen.tmx.bin: $(TMX2BIN) test/screen.tmx
122122
test/metatiles.tmx.bin: $(TMX2BIN) test/metatiles.tmx
123123
$(TMX2BIN) -v -t2 test/metatiles.tmx
124124

125-
test/test-pal.png.chr test/test-pal.png.clr: $(PNG2MSX) test/test-pal.png
125+
test/test-pal.png.chr test/test-pal.png.clr &: $(PNG2MSX) test/test-pal.png
126126
$(PNG2MSX) -v test/test-pal.png
127127

128128
demopcx: $(PCX2SPRPLUS) pcx2sprplus_demo/demo.pcx pcx2sprplus_demo/demo.asm

makefile.win renamed to windows.makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ REMOVE=cmd /c del
2020
# main makefile
2121
#
2222

23-
include makefile.common
23+
include shared.makefile

0 commit comments

Comments
 (0)