|
5 | 5 | AWS_SECRET_ACCESS_KEY: ENCRYPTED[0930789e1bd5f1277a5e01f43750cc6de7e2be51ee6d26a60e34b3f47b6b124c54fab9cbcb498f8f26b0f5df48b622c6]
|
6 | 6 |
|
7 | 7 | task:
|
8 |
| - name: Build (Debian Linux) |
| 8 | + name: Build (Debian x86_64) |
9 | 9 | container:
|
10 | 10 | image: debian:12-slim
|
11 | 11 | cpu: 4
|
|
17 | 17 | - curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_VERSION}
|
18 | 18 | - rustup target add x86_64-unknown-linux-musl
|
19 | 19 | - mkdir ~/bin
|
20 |
| - - curl -L https://releases.wezm.net/upload-to-s3/0.2.0/upload-to-s3-0.2.0-x86_64-unknown-linux-musl.tar.gz | tar xzf - -C ~/bin |
| 20 | + - curl -L https://releases.wezm.net/upload-to-s3/0.3.0/upload-to-s3-0.3.0-x86_64-unknown-linux-musl.tar.gz | tar xzf - -C ~/bin |
21 | 21 | test_script:
|
22 | 22 | - cargo test
|
23 | 23 | publish_script: |
|
|
30 | 30 | ~/bin/upload-to-s3 -b releases.wezm.net "$tarball" "rsspls/$tag/$tarball"
|
31 | 31 | fi
|
32 | 32 |
|
| 33 | +task: |
| 34 | + name: Build (Debian aarch64) |
| 35 | + arm_container: |
| 36 | + image: debian:12-slim |
| 37 | + cpu: 4 |
| 38 | + cargo_cache: |
| 39 | + folder: $HOME/.cargo/registry |
| 40 | + fingerprint_script: cat Cargo.lock |
| 41 | + install_script: |
| 42 | + - apt-get update && apt-get install -y --no-install-recommends git ca-certificates curl gcc libc6-dev musl-tools |
| 43 | + - curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_VERSION} |
| 44 | + - rustup target add aarch64-unknown-linux-musl |
| 45 | + - mkdir ~/bin |
| 46 | + - curl -L https://releases.wezm.net/upload-to-s3/0.3.0/upload-to-s3-0.3.0-aarch64-unknown-linux-musl.tar.gz | tar xzf - -C ~/bin |
| 47 | + test_script: |
| 48 | + - cargo test |
| 49 | + publish_script: | |
| 50 | + tag=$(git describe --exact-match HEAD 2>/dev/null || true) |
| 51 | + if [ -n "$tag" ]; then |
| 52 | + cargo build --release --locked --target aarch64-unknown-linux-musl |
| 53 | + tarball="rsspls-${tag}-aarch64-unknown-linux-musl.tar.gz" |
| 54 | + strip target/aarch64-unknown-linux-musl/release/rsspls |
| 55 | + tar zcf "$tarball" -C target/aarch64-unknown-linux-musl/release rsspls |
| 56 | + ~/bin/upload-to-s3 -b releases.wezm.net "$tarball" "rsspls/$tag/$tarball" |
| 57 | + fi |
| 58 | +
|
33 | 59 | task:
|
34 | 60 | name: Build (FreeBSD)
|
35 | 61 | freebsd_instance:
|
|
41 | 67 | install_script:
|
42 | 68 | - pkg install -y git-lite ca_root_nss
|
43 | 69 | - fetch -o - https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain ${RUST_VERSION}
|
44 |
| - - fetch -o - https://releases.wezm.net/upload-to-s3/0.2.0/upload-to-s3-0.2.0-amd64-unknown-freebsd.tar.gz | tar xzf - -C /usr/local/bin |
| 70 | + - fetch -o - https://releases.wezm.net/upload-to-s3/0.3.0/upload-to-s3-0.3.0-amd64-unknown-freebsd.tar.gz | tar xzf - -C /usr/local/bin |
45 | 71 | test_script:
|
46 | 72 | - cargo test
|
47 | 73 | publish_script: |
|
|
66 | 92 | install_script:
|
67 | 93 | - curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${RUST_VERSION}
|
68 | 94 | - mkdir ~/bin
|
69 |
| - - curl -L https://releases.wezm.net/upload-to-s3/0.2.0/upload-to-s3-0.2.0-universal-apple-darwin.tar.gz | tar xzf - -C ~/bin |
| 95 | + - curl -L https://releases.wezm.net/upload-to-s3/0.3.0/upload-to-s3-0.3.0-universal-apple-darwin.tar.gz | tar xzf - -C ~/bin |
70 | 96 | - rustup target add x86_64-apple-darwin
|
71 | 97 | test_script:
|
72 | 98 | - cargo test
|
|
97 | 123 | install_script:
|
98 | 124 | - Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe
|
99 | 125 | - .\rustup-init -y --profile minimal --default-toolchain $env:RUST_VERSION
|
100 |
| - - Invoke-WebRequest https://releases.wezm.net/upload-to-s3/0.2.0/upload-to-s3-0.2.0-x86_64-pc-windows-msvc.zip -OutFile upload-to-s3.zip |
| 126 | + - Invoke-WebRequest https://releases.wezm.net/upload-to-s3/0.3.0/upload-to-s3-0.3.0-x86_64-pc-windows-msvc.zip -OutFile upload-to-s3.zip |
101 | 127 | - Expand-Archive upload-to-s3.zip -DestinationPath .
|
102 | 128 | - git fetch --tags
|
103 | 129 | # PowerShell it truly horrific and lacks a way to exit on external command failure so we have to check after every command
|
|
0 commit comments