Skip to content

Commit

Permalink
chore(actions): add variable just before the test
Browse files Browse the repository at this point in the history
  • Loading branch information
omarabid committed Feb 4, 2024
1 parent 3b313aa commit 2b58ffb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ jobs:
run: |
sudo apt-get update
- name: add OpenAI env variable
run: export GITON_OPENAI_key=void

- name: test (using cross)
if: ${{ matrix.platform.cross }}
run: |
cargo install cross --git https://github.com/cross-rs/cross
export GITON_OPENAI_KEY=void
cross ${{ matrix.platform.command }} --target ${{ matrix.platform.target }} ${{ matrix.features.args }}
- name: test (using cargo)
if: ${{ !matrix.platform.cross }}
run: cargo ${{ matrix.platform.command }} --target ${{ matrix.platform.target }} ${{ matrix.features.args }}
run: |
export GITON_OPENAI_KEY=void
cargo ${{ matrix.platform.command }} --target ${{ matrix.platform.target }} ${{ matrix.features.args }}

0 comments on commit 2b58ffb

Please sign in to comment.