|
29 | 29 | runs-on: ubuntu-latest |
30 | 30 | steps: |
31 | 31 | - uses: actions/checkout@v6 |
| 32 | + - name: install system deps |
| 33 | + run: sudo apt install libasound2-dev libpulse-dev |
32 | 34 | - name: setup pnpm |
33 | 35 | uses: pnpm/action-setup@v4 |
34 | 36 | - name: Setup node |
@@ -64,22 +66,22 @@ jobs: |
64 | 66 | target: i686-pc-windows-msvc |
65 | 67 | - host: ubuntu-latest |
66 | 68 | target: x86_64-unknown-linux-gnu |
67 | | - build: pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross |
| 69 | + build: pnpm build --target x86_64-unknown-linux-gnu |
68 | 70 | - host: ubuntu-latest |
69 | 71 | target: x86_64-unknown-linux-musl |
70 | | - build: pnpm build --target x86_64-unknown-linux-musl -x |
| 72 | + build: pnpm build --target x86_64-unknown-linux-musl --use-cross |
71 | 73 | - host: macos-latest |
72 | 74 | target: aarch64-apple-darwin |
73 | 75 | build: pnpm build --target aarch64-apple-darwin |
74 | | - - host: ubuntu-latest |
| 76 | + - host: ubuntu-24.04-arm |
75 | 77 | target: aarch64-unknown-linux-gnu |
76 | | - build: pnpm build --target aarch64-unknown-linux-gnu --use-napi-cross |
| 78 | + build: pnpm build --target aarch64-unknown-linux-gnu |
77 | 79 | - host: ubuntu-latest |
78 | 80 | target: armv7-unknown-linux-gnueabihf |
79 | | - build: pnpm build --target armv7-unknown-linux-gnueabihf --use-napi-cross |
| 81 | + build: pnpm build --target armv7-unknown-linux-gnueabihf --use-cross |
80 | 82 | - host: ubuntu-latest |
81 | 83 | target: aarch64-unknown-linux-musl |
82 | | - build: pnpm build --target aarch64-unknown-linux-musl -x |
| 84 | + build: pnpm build --target aarch64-unknown-linux-musl --use-cross |
83 | 85 | - host: windows-latest |
84 | 86 | target: aarch64-pc-windows-msvc |
85 | 87 | build: pnpm build --target aarch64-pc-windows-msvc |
@@ -110,20 +112,29 @@ jobs: |
110 | 112 | .cargo-cache |
111 | 113 | target/ |
112 | 114 | key: ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }} |
113 | | - - uses: mlugg/setup-zig@v2 |
114 | | - if: ${{ contains(matrix.settings.target, 'musl') }} |
115 | | - with: |
116 | | - version: 0.15.2 |
117 | | - - name: Install cargo-zigbuild |
| 115 | + # - uses: mlugg/setup-zig@v2 |
| 116 | + # if: ${{ contains(matrix.settings.target, 'musl') }} |
| 117 | + # with: |
| 118 | + # version: 0.15.2 |
| 119 | + # - name: Install cargo-zigbuild |
| 120 | + # uses: taiki-e/install-action@v2 |
| 121 | + # if: ${{ contains(matrix.settings.target, 'musl') }} |
| 122 | + # env: |
| 123 | + # GITHUB_TOKEN: ${{ github.token }} |
| 124 | + # with: |
| 125 | + # tool: cargo-zigbuild |
| 126 | + - name: Install cross |
118 | 127 | uses: taiki-e/install-action@v2 |
119 | | - if: ${{ contains(matrix.settings.target, 'musl') }} |
| 128 | + if: ${{ contains(matrix.settings.build, '--use-cross') }} |
120 | 129 | env: |
121 | 130 | GITHUB_TOKEN: ${{ github.token }} |
122 | 131 | with: |
123 | | - tool: cargo-zigbuild |
124 | | - - name: Install libasound2-dev |
125 | | - run: sudo apt install libasound2-dev |
126 | | - if: ${{ contains(matrix.settings.target, 'linux') }} |
| 132 | + tool: cross |
| 133 | + - name: Install libasound / libpulse |
| 134 | + run: | |
| 135 | + sudo apt update |
| 136 | + sudo apt install libasound2-dev libpulse-dev |
| 137 | + if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' || matrix.settings.target == 'aarch64-unknown-linux-gnu' }} |
127 | 138 | - name: Setup toolchain |
128 | 139 | run: ${{ matrix.settings.setup }} |
129 | 140 | if: ${{ matrix.settings.setup }} |
|
0 commit comments