-
Notifications
You must be signed in to change notification settings - Fork 36
42 lines (41 loc) · 1.26 KB
/
setup_build_artifact.yml
File metadata and controls
42 lines (41 loc) · 1.26 KB
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
on:
workflow_call:
inputs:
major:
required: true
type: string
minor:
required: true
type: string
jobs:
setup_build_artifact:
name: Setup build artifact (${{ format('{0}.{1}', inputs.major, inputs.minor) }})
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- name: Setup Bun
uses: ./.github/actions/setup_bun
- name: Restore BYOND from Cache
uses: ./.github/actions/restore_or_install_byond
with:
major: ${{ inputs.major }}
minor: ${{ inputs.minor }}
- name: Compile
run: |
source $HOME/BYOND/byond/bin/byondsetup
tools/build/build.sh --ci dm -DCIBUILDING -DANSICOLORS -Werror -ITG0001 -I"loop_checks"
- name: Setup variable for output path
run: |
OUTPUT_DIR="target"
echo "OUTPUT_DIR=$OUTPUT_DIR" >> $GITHUB_ENV
- name: Copy output files
run: |
bash tools/ci/copy_build_output.sh $OUTPUT_DIR
- name: Upload artifact
if: success()
uses: actions/upload-artifact@v4
with:
name: build-artifact-${{ inputs.major }}-${{ inputs.minor }}
path: ${{ env.OUTPUT_DIR }}
retention-days: 1