-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (76 loc) · 2.08 KB
/
main.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
name: main
on: [push]
jobs:
Linux:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
submodules: true
- name: install
run: |
sudo apt-get update
sudo apt-get install -y gcc make xxd pkg-config libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev
- name: build
run: |
mkdir -p build/linux
md5sum c1k3-assets/audio/* > build/linux/before.md5
make assets
md5sum c1k3-assets/audio/* > build/linux/after.md5
make package
- name: artifacts
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: c1k3-linux.tar.gz
path: c1k3-linux.tar.gz
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
c1k3-linux.tar.gz
Windows:
runs-on: windows-2019
permissions:
contents: write
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
submodules: true
- name: install
uses: msys2/setup-msys2@v2
with:
msystem: ucrt64
install: >-
make
vim
zip
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-pkg-config
mingw-w64-ucrt-x86_64-SDL2
mingw-w64-ucrt-x86_64-SDL2_ttf
mingw-w64-ucrt-x86_64-SDL2_mixer
mingw-w64-ucrt-x86_64-angleproject
- name: build
shell: msys2 {0}
run: |
make package
- name: artifacts
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: c1k3-windows.zip
path: c1k3-windows.zip
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
c1k3-windows.zip