Commit Graph

281 Commits

Author SHA1 Message Date
Jiahao XU b22a55f08f
Install lzma, bzip and zstd lib in workflow unit-tests
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:38 +10:00
Jiahao XU 997d4e4e9d
Run workflow unit-tests with feature pkg-config
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-23 22:41:37 +10:00
Félix Saparelli 3889d122a7
Releng improvements (#224) 2022-07-24 00:39:54 +12:00
Jiahao XU 9f914a3c84
Fix integration test: Copy from `debug` for PR
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-14 21:41:32 +10:00
Jiahao XU 2936f2c3f1
Build cargo-binstall in debug mode for PR
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-07-14 21:32:59 +10:00
Félix Saparelli 6a127bab86
Don’t double up unit tests on PRs 2022-07-05 22:18:50 +12:00
Félix Saparelli 38ce26d0c4
Remame workflows for clarity 2022-07-05 22:17:10 +12:00
Jiahao XU 5302240829
Refactor workflow rust: Extract test into script
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 18:21:57 +10:00
Jiahao XU 9bf1ce3000
Fix typo in step "Test (Unix)"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 17:11:52 +10:00
Jiahao XU dd24661091
Test installed bin in step "Test (Windows)"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 17:02:53 +10:00
Jiahao XU 19656b6f45
Fix typo in step "Test"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 17:02:31 +10:00
Jiahao XU 4b78d4eb4d
Fix step Test: Run `cargo binstall --help` instead
of `cargo binstall --version` since `--version` does not print the
version of `cargo-binstall`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 16:52:51 +10:00
Jiahao XU 58f0d5f12d
Run bins after installation in step "Test"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 16:43:11 +10:00
Jiahao XU ac22db5e79
Set log level to debug in step "Test"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-11 14:37:14 +10:00
Jiahao XU 4297b13ed9
Fix testing on Windows
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 18:20:59 +10:00
Jiahao XU fbcfe369da
Rm cbindgen from `bins` in step "Test"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 18:16:28 +10:00
Jiahao XU cfa6090e6e
Rm non-existent crate in step "Test"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 17:32:38 +10:00
Jiahao XU ea71cede42
Fix `if` cond for step "Test"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 17:28:23 +10:00
Jiahao XU e312a22ba2
`set -euxo pipefail` in step "Test"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 17:19:21 +10:00
Jiahao XU dc5978e737
Fix step "Test": Fix invoking `cargo-binstall` directly
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 17:13:01 +10:00
Jiahao XU 68942f56e4
Merge two testing step into one in workflow `rust`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 17:08:54 +10:00
Jiahao XU 57d2b4c3b4
Run job "Test binstall" only natively
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 17:08:26 +10:00
Jiahao XU d038e77978
Fix typo in step "Test installing bins"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 17:02:18 +10:00
Jiahao XU 53c9d667ce
Enable caching on macos as issue has been fixed
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 16:55:21 +10:00
Jiahao XU 665564420a
Add more bins to test in job "Test installing bins"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 16:54:55 +10:00
Jiahao XU 4ff64dee34
Fix caching: Only cache `.cargo/{git, registry}`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 16:53:34 +10:00
Jiahao XU d4495cc3bb
Merge job test into job build to speedup workflow
so that testing does not have to wait for all build jobs with different
configurations to finish before starting.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 16:52:24 +10:00
Jiahao XU 3e5c7ec43f
Add back testing of `--manifest-path` in workflow `rust`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 16:49:09 +10:00
Jiahao XU b0598a1fad
Update workflow rust: Test `find_crate_cratesio`
by removing `--manifest-path`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-10 16:38:45 +10:00
Jiahao XU 951dacd03d
Fix cache key used in workflow "ci"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-09 02:00:38 +10:00
Jiahao XU c9bd741c9b
Add new workflow ci
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-09 01:53:10 +10:00
Jiahao XU 5d62f7f615
Rm target aarch64-unknown-linux-gnu & armv7-unknown-linux-gnueabihf
Since they are the only two targets that crate `zstd-sys` failed to
build.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 20:41:32 +10:00
Félix Saparelli 151998a1eb
Cleanup yaml 2022-05-31 17:25:34 +12:00
Félix Saparelli 832c51f025
Add apple m1 builds 2022-05-31 17:17:04 +12:00
Jiahao XU 9ed7dc6970
Rm step for installing `musl-tool` in job `test`
The job `test` for target `x86_64-unknown-linux-musl` requires
`musl-tool` since there is no pre-built binary present for that target
and thus `cargo-binstall` automatically fall back to `cargo-build`.

Currently, the test for it also failed because `libssl-1.1` is not
present.

However, since this will be fixed once a new release of `cargo-binstall`
is published, this step should not be present.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 14:40:45 +10:00
Jiahao XU aabf5c75a2
Add target `aarch64` to job `build`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 14:24:08 +10:00
Jiahao XU 9c9b8e55b3
Use `cross` to for target `armv7-unknown-linux-gnueabihf`
in job `build`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 14:08:51 +10:00
Jiahao XU 187ac2d20e
Refactor: Avoid duplicate job for building release
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 13:53:03 +10:00
Jiahao XU 6172bcb126
Fix step "Configure toolchain" in job test
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 13:08:13 +10:00
Jiahao XU feb03e37d2
Fix job `test` for `x86_64-unknown-linux-musl`
Install corresponding rustup target and musl-tools

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:58:35 +10:00
Jiahao XU d1c6a07a48
Fix typo in path of step "Configure caching"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:47:02 +10:00
Jiahao XU ec5ab955b3
Fix use of `||` in `if` in steps
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:44:18 +10:00
Jiahao XU 7796f8760a
Enable `use-cross` for job "Build release for arm musl target"
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:40:48 +10:00
Jiahao XU 37ddf3c435
Merge duplicate steps with different `if` using `||`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:37:49 +10:00
Jiahao XU 38849734b2
Remove steps to install libssl in job `build`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 12:36:40 +10:00
Jiahao XU 7455037190
Add `x86_64-unknown-linux-musl` as target to job `test`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 00:36:36 +10:00
Jiahao XU bcc8057705
Add back `{x86_64, armv7}unknown-linux-gnu{eabihf}` targets
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 00:35:03 +10:00
Jiahao XU cba8a05c82
Fix job "Install cross toolchain (armv7)"
Install "gcc-arm-linux-gnueabihf" as "gcc-arm-linux-musleabihf" does not
exist.

Also use `apt-get` instead of `apt`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-30 17:19:10 +10:00
Jiahao XU 4e1cb0fdcf
Compile prebuilt binaries using musl target
So that it is statically linked and does not depend on any dynamic
library and can be run anywhere.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-30 17:13:57 +10:00
ryan kurte 87449e29e7 Swap macos to zip, update binary lookup for binstall 2021-10-08 11:38:38 +13:00
ryan 612d19d0fb fix windows artefact type for testing 2021-04-08 20:49:44 +12:00
ryan 122a5fbdc3 re-add openssl for armv7, probs broken 2021-04-08 20:39:52 +12:00
ryan ddadcd6d32 bump tokio/reqwest and swap to rustls / remove openssl 2021-04-08 18:55:08 +12:00
ryan 1c25b1346f added zip support, pkg-fmt override
swapped CI to build zips for windows
2021-04-08 18:39:54 +12:00
Félix Saparelli bf91a1f5fa
Try to build lzma from source for arm cross-build 2021-03-06 23:16:58 +13:00
Ryan c09ac166d0
Update rust.yml
Remove release stage as this happens (gated) in build
2021-01-01 11:07:00 +13:00
ryan cf01c9e6f2 cleaning up tests 2020-12-31 20:46:59 +13:00
ryan f8f64a7a56 add needs between ci steps 2020-12-31 20:30:15 +13:00
ryan fd16c171e2 update readme, reorder tests 2020-12-31 20:27:34 +13:00
ryan 80a217b0cd remove armv7 from testing 2020-12-31 20:05:35 +13:00
ryan c6cba64f77 add a basic test on each platform 2020-12-31 20:04:42 +13:00
ryan cb9a5e1057 Install cross compiler toolchain 2020-12-31 19:50:14 +13:00
ryan 8a212b3f46 fix enable cross setting 2020-12-31 19:40:55 +13:00
ryan 4eac4bdcd7 swap to action-apt for multiarch 2020-12-31 19:37:08 +13:00
ryan f16409cda9 separate pkg config step 2020-12-31 19:17:23 +13:00
ryan 76ad6114ba right, tee needs to append 2020-12-31 19:08:53 +13:00
ryan 3af09aa9a9 wow this is, a lot 2020-12-31 18:47:22 +13:00
ryan f86206582b comeee on: 2020-12-31 18:25:18 +13:00
ryan a615eb6b5e gettin serious on the package debugging 2020-12-31 18:24:03 +13:00
ryan 3a388c1fa1 install all deps, maybe issue with not adding via dpkg 2020-12-31 18:14:51 +13:00
ryan 4305876d93 fix libssl-dev:armhf install 2020-12-31 18:07:09 +13:00
ryan ab112efae5 manual add armhf repo 2020-12-31 17:53:58 +13:00
ryan 57703ad5c8 fix armv7 openssl filter 2020-12-31 17:41:02 +13:00
ryan 3de20f7bc1 switch armv7 build to ubuntu-20.04 2020-12-31 17:33:24 +13:00
ryan 6bba72aead smol readme change 2020-12-14 21:47:43 +13:00
ryan dd4407bbb6 disable actions cache on macos, fix path error on windows 2020-12-14 21:27:53 +13:00
ryan d0b23c5870 fix arm add arch command 2020-12-14 21:09:21 +13:00
ryan adcbc6ae20 try installing openssl 2020-12-14 21:07:12 +13:00
ryan b031f79e1f switch to rustls, fix windows build 2020-12-14 20:58:39 +13:00
ryan f01fab7de7 fix default branch name 2020-12-14 20:47:57 +13:00
ryan d31364f5da Rough first attempt 2020-12-14 20:43:51 +13:00