Skip to content

Commit

Permalink
chore: enabled triggering release from an arbitrary ref
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jul 9, 2024
1 parent 353fc4b commit 2c7c643
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
description: 'Run the CGO leak detector'
required: false
default: 'false'
ref:
description: 'The ref to build'
required: false

defaults:
run:
Expand Down Expand Up @@ -50,6 +53,11 @@ jobs:
with:
submodules: recursive
- uses: ./.github/actions/configure-environment
- if: github.event.inputs.ref != ''
uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- name: Run shellcheck
run: shellcheck ./install-filcrypto
- name: Run cargo fmt
Expand Down Expand Up @@ -86,6 +94,11 @@ jobs:
with:
submodules: recursive
- uses: ./.github/actions/configure-environment
- if: github.event.inputs.ref != ''
uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- if: runner.os == 'macOS'
run: cd rust && cargo fetch
- name: Build project
Expand Down Expand Up @@ -125,15 +138,16 @@ jobs:
supraseal:
name: Build with CUDA supraseal
runs-on: ubuntu-latest
# # Is it OK if we operate in the default working directory?
# defaults:
# run:
# working-directory: go/src/github.com/filecoin-project/filecoin-ffi
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/configure-environment
- if: github.event.inputs.ref != ''
uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- name: Build project with `FFI_USE_CUDA_SUPRASEAL=1`
run: FFI_BUILD_FROM_SOURCE=1 FFI_USE_CUDA_SUPRASEAL=1 make
publish:
Expand All @@ -151,6 +165,11 @@ jobs:
with:
submodules: recursive
- uses: ./.github/actions/configure-environment
- if: github.event.inputs.ref != ''
uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- if: runner.os == 'macOS'
run: |
cd rust && rustup target add x86_64-apple-darwin
Expand Down

0 comments on commit 2c7c643

Please sign in to comment.