|
4 | 4 | default:
|
5 | 5 | @just --list --unsorted --color=always
|
6 | 6 |
|
7 |
| -_build channel: |
8 |
| - docker build --build-arg CHANNEL="{{channel}}" -t clux/muslrust:temp . |
9 |
| -# Build the stable container locally tagged as :temp |
10 |
| -build-stable: (_build "stable") |
11 |
| -# Build the nightly container locally tagged as :temp |
12 |
| -build-nightly: (_build "nightly") |
| 7 | +_build channel ar platform ext: |
| 8 | + docker build --build-arg CHANNEL="{{channel}}" --build-arg AR="{{ar}}" --platform="{{platform}}" -t rustmusl-temp . -f Dockerfile.{{ext}} |
| 9 | +# Build the stable x86 container |
| 10 | +build-stable-amd: (_build "stable" "amd64" "linux/amd64" "x86_64") |
| 11 | +# Build the nightly x86 container |
| 12 | +build-nightly-amd: (_build "nightly" "amd64" "linux/amd64" "x86_64") |
| 13 | +# Build the stable arm container |
| 14 | +build-stable-arm: (_build "stable" "arm64" "linux/arm64" "arm64") |
| 15 | +# Build the nightly arm container |
| 16 | +build-nightly-arm: (_build "nightly" "arm64" "linux/arm64" "arm64") |
13 | 17 |
|
14 | 18 | # Shell into the built container
|
15 | 19 | run:
|
16 |
| - docker run -v $PWD/test:/volume -w /volume -it clux/muslrust:temp /bin/bash |
| 20 | + docker run -v $PWD/test:/volume -w /volume -it rustmusl-temp /bin/bash |
17 | 21 |
|
18 |
| -# Test an individual crate against built containr |
| 22 | +test-setup: |
| 23 | + docker build -t test-runner . -f Dockerfile.test-runner |
| 24 | + |
| 25 | +# Test an individual crate against built container |
19 | 26 | _t crate:
|
20 | 27 | ./test.sh {{crate}}
|
21 | 28 |
|
| 29 | +# when running locally use one of these instead of _t |
| 30 | +_t_amd crate: |
| 31 | + #!/bin/bash |
| 32 | + # TODO: make a variant for arm here, or do platform inference |
| 33 | + export PLATFORM="linux/amd64" |
| 34 | + export TARGET_DIR="x86_64-unknown-linux-musl" |
| 35 | + export AR="amd64" |
| 36 | + ./test.sh {{crate}} |
| 37 | +_t_arm crate: |
| 38 | + #!/bin/bash |
| 39 | + export PLATFORM="linux/arm64" |
| 40 | + export TARGET_DIR="aarch64-unknown-linux-musl" |
| 41 | + export AR="arm64" |
| 42 | + ./test.sh {{crate}} |
| 43 | + |
| 44 | + |
22 | 45 | # Test all crates against built container
|
23 | 46 | test: (_t "plain") (_t "ssl") (_t "rustls") (_t "pq") (_t "serde") (_t "curl") (_t "zlib") (_t "hyper") (_t "dieselpg") (_t "dieselsqlite")
|
24 | 47 |
|
|
0 commit comments