Files
Bubberstation/.github/workflows/setup_build_artifact.yml
san7890andGitHub 34289bfce8 Standardizes all CI to run on ubuntu-24.04 (#94410)
## About The Pull Request

<img width="908" height="878" alt="image"
src="https://github.com/user-attachments/assets/7262576b-f7d9-4be4-8cff-6662f85698fd"
/>

Our application of Ubuntu 22.04 versus Ubuntu 24.04 (which is presently
the version for `ubuntu-latest`) is pretty inconsistent even within the
same suites, I figure we bump it up and set one standard moving
forwards. This PR was originally set to autoset it to `ubuntu-latest`
but wow the issues are agonizing so let's just bump it up and keep it
synchronized

also bumps python to `3.11.0` and whatever dependency versions needed
that as that was necessary
2025-12-13 20:36:10 -05:00

43 lines
1.3 KiB
YAML

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-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- 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@v6
with:
name: build-artifact-${{ inputs.major }}-${{ inputs.minor }}
path: ${{ env.OUTPUT_DIR }}
retention-days: 1