|
22 | 22 | - uses: actions/checkout@v2 |
23 | 23 | - run: sudo apt-get update |
24 | 24 | if: matrix.target == 'x86_64-unknown-linux-musl' |
25 | | - - run: sudo apt-get install -y musl musl-dev musl-tools |
| 25 | + - run: sudo apt-get install -y musl musl-dev musl-tools cmake |
26 | 26 | if: matrix.target == 'x86_64-unknown-linux-musl' |
27 | 27 | - name: Cache cargo registry |
28 | 28 | uses: actions/cache@v1 |
@@ -59,20 +59,25 @@ jobs: |
59 | 59 | toolchain: ${{ matrix.toolchain }} |
60 | 60 | args: --target ${{ matrix.target }} --workspace |
61 | 61 |
|
62 | | - # If musl, compile and test all excluding kafka |
| 62 | + # If musl, compile and test all |
63 | 63 | - uses: actions-rs/cargo@v1 |
64 | 64 | if: matrix.target == 'x86_64-unknown-linux-musl' |
65 | 65 | with: |
66 | 66 | command: build |
67 | 67 | toolchain: ${{ matrix.toolchain }} |
68 | | - args: --target ${{ matrix.target }} --workspace --exclude cloudevents-sdk-rdkafka |
| 68 | + args: --target ${{ matrix.target }} --workspace |
| 69 | + env: |
| 70 | + CC: musl-gcc |
| 71 | + CXX: g++ |
69 | 72 | - uses: actions-rs/cargo@v1 |
70 | 73 | if: matrix.target == 'x86_64-unknown-linux-musl' |
71 | 74 | with: |
72 | 75 | command: test |
73 | 76 | toolchain: ${{ matrix.toolchain }} |
74 | | - args: --target ${{ matrix.target }} --workspace --exclude cloudevents-sdk-rdkafka |
75 | | - |
| 77 | + args: --target ${{ matrix.target }} --workspace |
| 78 | + env: |
| 79 | + CC: musl-gcc |
| 80 | + CXX: g++ |
76 | 81 | # If wasm, then we test only the main module and cloudevents-sdk-reqwest |
77 | 82 | - uses: actions-rs/cargo@v1 |
78 | 83 | if: matrix.target == 'wasm32-unknown-unknown' |
|
0 commit comments