-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (60 loc) · 2.04 KB
/
mulle-sde-artifacts.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
name: Artifacts
on:
release:
types: [ prereleased, released ]
env:
BUILD_TYPE: release
OTHER_PROJECTS: "MulleFoundation/mulle-foundation-developer;
mulle-objc/mulle-objc-developer;
mulle-c/mulle-c-developer;"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-24.04, macos-latest ]
steps:
- name: Add to path
run: echo "$HOME/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
- uses: mulle-sde/github-ci@v2
- uses: mulle-cc/github-ci@v5
- name: Choose musl on Linux
run: |
[ "${{ runner.os }}" != "Linux" ] || mulle-sde env set MULLE_CRAFT_SDKS "musl"
- name: Mulle-SDE Craft
run: mulle-sde craft --release
- name: Get Executable
run: echo "exepath=$(mulle-sde product list)" >> $GITHUB_OUTPUT
id: executable
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: artifact.${{ runner.os }}
path: ${{ steps.executable.outputs.exepath }}
retention-days: 1
release:
needs: [ build ]
name: Upload Artifacts to Release
runs-on: ubuntu-latest
steps:
- name: Download Linux Artifact
uses: actions/[email protected]
with:
name: artifact.Linux
# actual file will be ${{ steps.executable.outputs.exepath }} though!
- name: Rename Linux Artifact
run: |
mv ${{ github.workspace }}/${{ github.event.repository.name }} ${{ github.workspace }}/${{ github.event.repository.name }}.linux
- name: Download macOS Artifact
uses: actions/[email protected]
with:
name: artifact.macOS
- name: Rename macOS Artifact
run: mv ${{ github.workspace }}/${{ github.event.repository.name }} ${{ github.workspace }}/${{ github.event.repository.name }}.macos
- name: Upload Artifacts
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_paths: '[ "${{ github.event.repository.name }}.*" ]'