Skip to content

Commit

Permalink
exclude context bindings from musl build and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrankland committed Oct 3, 2024
1 parent fd2b50e commit 8a20c5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build_target/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:

- name: Compile binary
shell: bash
run: cargo build -q --all --profile=${{ inputs.profile }} --target ${{ inputs.target }}
run: cargo build -q --workspace ${{ contains(inputs.target, 'musl') && '--exclude context-js --exclude context-py' || '' }} --profile=${{ inputs.profile }} --target ${{ inputs.target }}

- name: Create binary with debug info
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
uses: taiki-e/install-action@nextest

- name: Run tests
run: cargo nextest run --profile=ci
run: cargo nextest run --workspace ${{ contains(matrix.target, 'musl') && '--exclude context-js --exclude context-py' || '' }} --profile=ci

- name: Build ${{ matrix.target }} target
if: "!cancelled()"
run: cargo build -q --all --release --target ${{ matrix.target }}
run: cargo build -q --workspace ${{ contains(matrix.target, 'musl') && '--exclude context-js --exclude context-py' || '' }} --release --target ${{ matrix.target }}

- name: Upload results using action from ${{ matrix.target }}
env:
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
run: curl -LsSf https://get.nexte.st/latest/linux-arm | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Run tests
run: cargo nextest run --profile=ci
run: cargo nextest run --workspace ${{ contains(matrix.target, 'musl') && '--exclude context-js --exclude context-py' || '' }} --profile=ci

- name: Build ${{ matrix.target }} target
uses: ./.github/actions/build_target
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Build ${{ matrix.target }} target
if: "!cancelled()"
run: cargo build -q --all --profile=release-with-debug --target ${{ matrix.target }}
run: cargo build -q --workspace ${{ contains(matrix.target, 'musl') && '--exclude context-js --exclude context-py' || '' }} --profile=release-with-debug --target ${{ matrix.target }}

- name: Strip debug info
run: strip target/${{ matrix.target }}/release-with-debug/trunk-analytics-cli
Expand Down

0 comments on commit 8a20c5c

Please sign in to comment.