Skip to content

Commit

Permalink
test_ci - Add cargo build
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 21, 2025
1 parent 0c2f511 commit 72d0149
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,14 @@ jobs:
run: cargo test --all --locked ${{ env.CARGO_PROFILE_TARGET_FEATURES_ARGS }}
shell: bash
if: matrix.cross != 'true'

# now do a standard build
- name: "cargo build --all --locked ${{ env.CARGO_PROFILE_TARGET_FEATURES_ARGS }}"
run: cargo build --all --locked ${{ env.CARGO_PROFILE_TARGET_FEATURES_ARGS }}
shell: bash
if: matrix.cross != 'true'

# matrix items USING CROSS
- name: cross cargo test --target ${{ matrix.target }} ${{ env.CROSS_ARGS }}
- name: "cross cargo test --target ${{ matrix.target }} ${{ env.CROSS_ARGS }}"
uses: houseabsolute/[email protected]
env:
RUSTFLAGS: ${{ env.RUSTFLAGS }}
Expand All @@ -129,3 +133,14 @@ jobs:
toolchain: stable
args: "${{ env.CROSS_ARGS }}"
if: matrix.cross == 'true'

- name: "cross cargo build --target ${{ matrix.target }} ${{ env.CROSS_ARGS }}"
uses: houseabsolute/[email protected]
env:
RUSTFLAGS: ${{ env.RUSTFLAGS }}
with:
command: "build"
target: ${{ matrix.target }}
toolchain: stable
args: "${{ env.CROSS_ARGS }}"
if: matrix.cross == 'true'

0 comments on commit 72d0149

Please sign in to comment.