-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (38 loc) · 1.21 KB
/
linux-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
name: Linux Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt -y install cmake liballegro5-dev libenet-dev libmad0-dev libfluidsynth-dev fluidsynth
- name: Build
run: ./scripts/build-linux.sh
- name: Bundle libs
run: ./scripts/bundle-libs-linux.sh
- name: Delete Old Artifacts
uses: actions/github-script@v6
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 === 'linux-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@v3
with:
name: linux-build
path: dist