Skip to content

Commit

Permalink
.github: try making GHA happy w/ properly formatted sequence of app n…
Browse files Browse the repository at this point in the history
…ames
  • Loading branch information
waynr committed Apr 9, 2023
1 parent 6850056 commit 3b6ab50
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
pip install yq
- id: get-app-names
run: |
echo "app-names=$(tomlq -r '.workspace.members[]' Cargo.toml | cut -d\/ -f2 | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
echo "app-names=\"$(tomlq -c '.workspace.members[]' Cargo.toml)\"" >> "$GITHUB_OUTPUT"
build:
runs-on: ubuntu-latest
Expand All @@ -74,7 +74,11 @@ jobs:
steps:
- name: check out repository
uses: actions/checkout@v3
- name: extract app name from matrix variable
id: get-name
run: |
echo "app-name=$(echo ${{matrix.app}} | cut -d\/ -f2)" >> "$GITHUB_OUTPUT"
- name: build
run: |
cargo build -p ${{ matrix.app }}
./target/debug/${{ matrix.app }} build
cargo build -p ${{ steps.get-name.outputs.app-name }}
./target/debug/${{ steps.get-name.outputs.app-name }} build

0 comments on commit 3b6ab50

Please sign in to comment.