fix: Cross compile tests as well
We ran the tests first, but did not cross compile them. This step would
also compile all the grammar libraries (but for the host machine). On
the actual release build, the editor would get built for the target, but
the grammar libraries would be detected as present and wouldn't
recompile.
Refs #577
commitdbd1f11311e72658f81ad50ea500c2710c766fd8
authorBlaž Hrastnik <blaz@mxxn.io>
dateSat 14 Aug 2021, 13:26 (5 years ago)
parentb0acd8c
.github/workflows/release.yml+2−1
@@ -67,8 +67,9 @@ jobs:
6767 - name: Run cargo test
6868 uses: actions-rs/cargo@v1
6969 with:
70+ use-cross: ${{ matrix.cross }}
7071 command: test
71− args: --release --locked
72+ args: --release --locked --target ${{ matrix.target }}
7273
7374 - name: Build release binary
7475 uses: actions-rs/cargo@v1