-
Notifications
You must be signed in to change notification settings - Fork 58
111 lines (109 loc) · 3.13 KB
/
deploy.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
name: Deploy
on: workflow_dispatch
jobs:
windows:
runs-on: windows-latest
steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
python3 fips set local on
python3 fips build win64-vstudio-release
md5sum fips-files/deploy/sokol-tools/win64-vstudio-release/sokol-shdc.exe
- name: upload
uses: actions/upload-artifact@v4
with:
name: win64-vstudio-release
path: fips-files/deploy/sokol-tools/win64-vstudio-release/sokol-shdc.exe
retention-days: 1
mac_intel:
runs-on: macos-latest
steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
python3 fips set local on
python3 fips build osx-x64-ninja-release
md5 fips-files/deploy/sokol-tools/osx-x64-ninja-release/sokol-shdc
- name: upload
uses: actions/upload-artifact@v4
with:
name: osx-x64-ninja-release
path: fips-files/deploy/sokol-tools/osx-x64-ninja-release/sokol-shdc
retention-days: 1
mac_arm:
runs-on: macos-latest
steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
python3 fips set local on
python3 fips build osx-arm64-ninja-release
md5 fips-files/deploy/sokol-tools/osx-arm64-ninja-release/sokol-shdc
- name: upload
uses: actions/upload-artifact@v4
with:
name: osx-arm64-ninja-release
path: fips-files/deploy/sokol-tools/osx-arm64-ninja-release/sokol-shdc
retention-days: 1
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
./build_docker.sh
md5sum sokol-shdc
- name: upload
uses: actions/upload-artifact@v4
with:
name: linux-ninja-release
path: sokol-shdc
retention-days: 1
deploy:
needs: [windows, mac_intel, mac_arm, linux]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: floooh/sokol-tools-bin
ssh-key: ${{ secrets.GHACTIONS_PUSH }}
- uses: actions/download-artifact@v4
with:
name: win64-vstudio-release
path: bin/win32
- uses: actions/download-artifact@v4
with:
name: osx-x64-ninja-release
path: bin/osx
- uses: actions/download-artifact@v4
with:
name: osx-arm64-ninja-release
path: bin/osx_arm64
- uses: actions/download-artifact@v4
with:
name: linux-ninja-release
path: bin/linux
- name: "commit and push"
run: |
md5sum bin/win32/sokol-shdc.exe
md5sum bin/osx/sokol-shdc
md5sum bin/osx_arm64/sokol-shdc
md5sum bin/linux/sokol-shdc
chmod a+x bin/osx/sokol-shdc bin/osx_arm64/sokol-shdc bin/linux/sokol-shdc
git config user.email "none"
git config user.name "GH Action"
git add .
git commit -m "updated (${{ github.run_number }})"
git push