Skip to content

Commit

Permalink
Update how reusable-workflow is called
Browse files Browse the repository at this point in the history
  • Loading branch information
raunakab committed Nov 16, 2024
1 parent 1d9d8f8 commit 42c5396
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 57 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/benchmark-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,28 @@ on:

jobs:
build:
runs-on: buildjet-8vcpu-ubuntu-2204
strategy:
fail-fast: true
matrix:
commit:
- ${{ github.event.inputs.c1 }}
timeout-minutes: 15 # Remove for ssh debugging
permissions:
id-token: write
contents: read
outputs:
wheel: ${{ steps.build-commit.outputs.wheel }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.commit }}
- uses: ./.github/workflows/build-commit.yaml
id: build-commit
with:
commit: ${{ matrix.commit }}
aws_role_arn: ${{ secrets.ACTIONS_AWS_ROLE_ARN }}
uses: ./.github/workflows/build-commit.yaml

# runs-on: buildjet-8vcpu-ubuntu-2204
# strategy:
# fail-fast: true
# matrix:
# commit:
# - ${{ github.event.inputs.c1 }}
# timeout-minutes: 15 # Remove for ssh debugging
# permissions:
# id-token: write
# contents: read
# outputs:
# wheel: ${{ steps.build-commit.outputs.wheel }}
# steps:
# - uses: actions/checkout@v4
# with:
# ref: ${{ matrix.commit }}
# id: build-commit
# with:
# commit: ${{ matrix.commit }}
# aws_role_arn: ${{ secrets.ACTIONS_AWS_ROLE_ARN }}

run:
needs: build
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/build-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,39 +60,3 @@ jobs:
file_basename=$(basename $file)
echo "wheel=$file_basename" >> "$GITHUB_OUTPUT"
done
# steps:
# - name: Install rust
# shell: bash
# run: |
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# CARGO_BIN="$HOME/.cargo/bin"
# echo 'export PATH="$CARGO_BIN:$PATH"' >> $HOME/.bashrc
# echo "$CARGO_BIN" >> $GITHUB_PATH

# - name: Install uv
# shell: bash
# run: |
# curl -LsSf https://astral.sh/uv/install.sh | sh
# UV_BIN="$HOME/.local/bin"
# echo 'export PATH="$UV_BIN:$PATH"' >> $HOME/.bashrc
# echo "$UV_BIN" >> $GITHUB_PATH

# - name: Source .bashrc
# shell: bash
# run: |
# source $HOME/.bashrc

# - name: Install python (version 3.9)
# shell: bash
# run: |
# uv python install 3.9
# uv python pin 3.9

# outputs:
# wheel:
# description: The wheel file that was built
# value: ${{ steps.upload_to_s3.outputs.wheel }}

# runs:
# using: composite

0 comments on commit 42c5396

Please sign in to comment.