Compare commits

...
+12 -1
View File
@@ -4,6 +4,12 @@ on:
push: push:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
inputs:
tag:
description: 'Tag to force the cross build on'
required: false
type: string
default: ''
jobs: jobs:
pre_job: pre_job:
@@ -131,7 +137,7 @@ jobs:
if: needs.pre_job.outputs.should_skip != 'true' if: needs.pre_job.outputs.should_skip != 'true'
name: cross name: cross
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: "node:current-bookworm-slim" container: "node:current-bullseye-slim"
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -158,6 +164,8 @@ jobs:
pkgconfig: i386-linux-gnu pkgconfig: i386-linux-gnu
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
- name: Install basic tools - name: Install basic tools
run: | run: |
apt-get update apt-get update
@@ -182,6 +190,7 @@ jobs:
echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}" echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}"
- name: Install ${{ matrix.arch }} Rust toolchain - name: Install ${{ matrix.arch }} Rust toolchain
run: | run: |
rustup default 1.79.0
rustup target add ${TARGET} rustup target add ${TARGET}
env: env:
TARGET: ${{ matrix.target }} TARGET: ${{ matrix.target }}
@@ -217,6 +226,8 @@ jobs:
SECRET: "${{ secrets.DOCKER_TOKEN }}" SECRET: "${{ secrets.DOCKER_TOKEN }}"
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
if: ${{ steps.vars.outputs.HAS_SECRET_TOKEN }} if: ${{ steps.vars.outputs.HAS_SECRET_TOKEN }}
- name: Convert username to lower case for docker - name: Convert username to lower case for docker
id: string_user id: string_user