49 lines
1.7 KiB
YAML
49 lines
1.7 KiB
YAML
name: next-build
|
|
|
|
on:
|
|
push:
|
|
branches: [next]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
candidate:
|
|
runs-on: alkane-ci
|
|
env:
|
|
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: Install build dependencies
|
|
run: |
|
|
apt-get update -qq
|
|
apt-get install -y -qq --no-install-recommends libssl-dev pkg-config ca-certificates
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: /root/.cache/wx-3.3.3-linux
|
|
key: wx-3.3.3-${{ runner.os }}-${{ hashFiles('thirdparty/wx-rs/VERSION') }}
|
|
- name: Build wxWidgets
|
|
run: |
|
|
if [ ! -x "$WX_PREFIX/bin/wx-config" ]; then
|
|
bash scripts/build-wx-linux.sh
|
|
fi
|
|
- 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"
|