-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.41 KB
/
bundle.yaml
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
name: Bundle Binaries
on:
workflow_run:
workflows: [ build ]
types:
- completed
workflow_dispatch:
inputs:
profile:
description: "The build profile to use"
required: false
default: dev
options:
- dev
- release
type: choice
workflow_call:
inputs:
profile:
description: "The build profile to use"
default: dev
required: false
type: string
jobs:
example-app-macos:
name: Bundle MacOS Binary
runs-on: macos-latest
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare runner
uses: ./.github/actions/prepare-runner
- name: Install toolchain
uses: ./.github/actions/rust-toolchain
- name: Select profile
id: select
run: |
if [[ -z "${{ inputs.profile }}" ]]; then
echo "profile=dev" >> "${GITHUB_OUTPUT}"
else
echo "profile=${{ inputs.profile }}" >> "${GITHUB_OUTPUT}"
fi
- name: Build
uses: ./.github/actions/cargo-build
with:
profile: ${{ steps.select.outputs.profile }}
- name: Bundle
uses: ./.github/actions/cargo-bundle
with:
profile: ${{ steps.select.outputs.profile }}
path: example