-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (44 loc) · 1.42 KB
/
windows-x86-build.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
name: Windows x86 Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
permissions:
actions: write
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
update: true
install: mingw-w64-i686-cmake mingw-w64-i686-gcc mingw-w64-i686-gdb mingw-w64-i686-allegro mingw-w64-i686-enet mingw-w64-i686-fluidsynth mingw-w64-i686-libmad
- name: Build
run: ./scripts/build-windows.sh
- name: Bundle libs
run: ./scripts/bundle-libs-mingw32.sh
- name: Delete Old Artifacts
uses: actions/github-script@v7
id: artifact
with:
script: |
const res = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
})
res.data.artifacts
.filter(({ name }) => name === 'windows-x86-build')
.forEach(({ id }) => {
github.rest.actions.deleteArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: id,
})
})
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: windows-x86-build
path: dist