File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 test :
1313 uses : ./.github/workflows/test.yml
14+ with :
15+ package : cambridge-asm-cli
1416
1517 publish :
1618 name : Publish crate
Original file line number Diff line number Diff line change 1111jobs :
1212 test :
1313 uses : ./.github/workflows/test.yml
14+ with :
15+ package : cambridge-asm
1416
1517 publish :
1618 name : Publish lib
Original file line number Diff line number Diff line change 1212 - " lib/**"
1313 - " cli/**"
1414 workflow_call :
15+ inputs :
16+ package :
17+ type : string
1518
1619env :
1720 CARGO_TERM_COLOR : always
2124 name : Test
2225 runs-on : ubuntu-latest
2326 container : ghcr.io/saadisave/cambridge-asm-ci:latest
27+ env :
28+ package-arg : ${{ format('{0}{1}', inputs.package != '' && '-p ' || '', inputs.package) }}
2429
2530 steps :
2631 - uses : actions/checkout@v3
@@ -29,10 +34,10 @@ jobs:
2934 run : cargo fmt --check
3035
3136 - name : Run clippy
32- run : cargo hack --feature-powerset clippy
37+ run : cargo hack ${{ env.package-arg }} --feature-powerset clippy
3338
3439 - name : Run in debug mode
35- run : cargo hack test -- feature-powerset && cargo hack build --feature-powerset
40+ run : cargo hack test ${{ env.package-arg }} -- feature-powerset && cargo hack build ${{ env.package-arg }} --feature-powerset
3641
3742 - name : Run in release mode
38- run : cargo hack test -- release --feature-powerset && cargo hack build --release --feature-powerset
43+ run : cargo hack test ${{ env.package-arg }} -- release --feature-powerset && cargo hack build ${{ env.package-arg }} --release --feature-powerset
You can’t perform that action at this time.
0 commit comments