From d87decc3c650ee373121d7aa8b97521a51865141 Mon Sep 17 00:00:00 2001 From: Marcin Szczepanski Date: Mon, 22 Apr 2024 14:21:22 +1000 Subject: [PATCH] Fix inputs in release workflow --- .github/workflows/release.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d99bd378f8d..d00dcbbd5c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,11 @@ on: description: 'The type of release, usually corresponds to the dist-tag' required: true type: string + profile: + description: 'The profile to use when building the native binaries' + required: false + default: 'release' + type: string secrets: GHCR_TOKEN: required: true @@ -53,7 +58,7 @@ jobs: if: ${{ matrix.target == 'aarch64-apple-darwin' }} run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*; - name: Build native packages - run: yarn build-native-${{ input.profile || 'release' }} + run: yarn build-native-${{ inputs.profile }} env: RUST_TARGET: ${{ matrix.target }} - name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034 @@ -88,7 +93,7 @@ jobs: override: true - uses: bahmutov/npm-install@v1.8.35 - name: Build native packages - run: yarn build-native-${{ input.profile || 'release' }} + run: yarn build-native-${{ inputs.profile }} - name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034 run: strip packages/*/*/*.node - name: Upload artifacts @@ -133,7 +138,7 @@ jobs: with: shared-key: ${{ matrix.target }} - name: Build native packages - run: yarn build-native-${{ input.profile || 'release' }} + run: yarn build-native-${{ inputs.profile }} env: RUST_TARGET: ${{ matrix.target }} CFLAGS: ${{ matrix.cflags }} @@ -186,7 +191,7 @@ jobs: target: ${{ matrix.target }} - uses: bahmutov/npm-install@v1.8.35 - name: Build native packages - run: yarn build-native-${{ input.profile || 'release' }} + run: yarn build-native-${{ inputs.profile }} env: RUST_TARGET: ${{ matrix.target }} CFLAGS: ${{ matrix.cflags }} @@ -217,7 +222,7 @@ jobs: fetch-depth: 0 - uses: bahmutov/npm-install@v1.8.35 - name: Build native packages - run: yarn build-native-${{ input.profile || 'release' }} + run: yarn build-native-${{ inputs.profile }} - name: Download artifacts uses: actions/download-artifact@v3 with: