-
Notifications
You must be signed in to change notification settings - Fork 53
51 lines (48 loc) · 1.38 KB
/
osx_dmg.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: OSX dmg
on:
push:
pull_request:
create:
schedule:
- cron: '0 0 1,15 * *'
env:
CC: clang
CXX: clang
FFLAGS: '-ff2c'
USE_SDL2: 1
jobs:
osx_dmg_create:
runs-on: macos-latest
if: github.event_name != 'pull_request' && (github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build app osx]')) || contains(github.event.pull_request.title, '[build app osx]')
env:
KIVY_SPLIT_EXAMPLES: 0
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Make app bundle
run:
python3 tools/build/build_macosx.py
- 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
.forEach(({ id }) => {
github.rest.actions.deleteArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: id,
})
})
- uses: actions/upload-artifact@v2
with:
name: osx_dmg
path: ./build/bin/KivyHelloWorld.dmg