68 lines
2.3 KiB
YAML
68 lines
2.3 KiB
YAML
name: next-build
|
|
|
|
on:
|
|
push:
|
|
branches: [next]
|
|
|
|
concurrency:
|
|
group: alkane-toolkit-next
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
candidate:
|
|
runs-on: alkane-ci
|
|
container:
|
|
image: gitea.bluefla.re/blueflare/alkane-ci@sha256:43bd4048ac01dff914ffb02ce5f2a07be37b5b0512ada66423247aebc74f0732
|
|
env:
|
|
CARGO_TARGET_DIR: target
|
|
WX_PREFIX: /root/.cache/wx-3.3.3-linux
|
|
WX_RS_WXCONFIG: /root/.cache/wx-3.3.3-linux/bin/wx-config
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Check runner image pins
|
|
run: python3 ci/check-runner-image.py
|
|
- name: Install build dependencies
|
|
run: bash ci/ensure-build-deps.sh base
|
|
- name: Compute wxWidgets cache key
|
|
id: wx-key
|
|
run: bash ci/wx-cache-key.sh
|
|
- id: wx-cache
|
|
uses: actions/cache/restore@v4
|
|
continue-on-error: true
|
|
with:
|
|
path: /root/.cache/wx-3.3.3-linux
|
|
key: ${{ steps.wx-key.outputs.key }}
|
|
- name: Build wxWidgets
|
|
run: bash ci/ensure-wx-prefix.sh
|
|
- name: Save vendored wxWidgets build
|
|
if: steps.wx-cache.outputs.cache-hit != 'true'
|
|
uses: actions/cache/save@v4
|
|
continue-on-error: true
|
|
with:
|
|
path: /root/.cache/wx-3.3.3-linux
|
|
key: ${{ steps.wx-key.outputs.key }}
|
|
- name: Build release candidate
|
|
run: cargo build --release -p alkane-gui -p alkane-artifacts -p alkane-flash -p alkane-cli --offline
|
|
- name: Select candidate version
|
|
id: version
|
|
run: bash ci/compute-rc-version.sh >> "$GITHUB_OUTPUT"
|
|
- name: Package candidate
|
|
if: steps.version.outputs.release == 'true'
|
|
run: |
|
|
mkdir -p dist
|
|
cp target/release/alkane-toolkit dist/
|
|
tar -C dist -czf "dist/alkane-toolkit-${{ steps.version.outputs.version }}-linux-x86_64.tar.gz" alkane-toolkit
|
|
- name: Create private prerelease
|
|
if: steps.version.outputs.release == 'true'
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
run: python3 ci/release-rc.py "${{ steps.version.outputs.tag }}" true "dist/alkane-toolkit-${{ steps.version.outputs.version }}-linux-x86_64.tar.gz"
|
|
- name: Clean generated Toolkit build
|
|
if: always()
|
|
run: python3 ci/cleanup-generated.py
|