1
+ name : CD # Continuous Deployment
2
+
3
+ permissions :
4
+ contents : write
5
+
6
+ on :
7
+ release :
8
+ types : [published]
9
+
10
+ env :
11
+ CARGO_INCREMENTAL : 0
12
+ CARGO_NET_GIT_FETCH_WITH_CLI : true
13
+ CARGO_NET_RETRY : 10
14
+ CARGO_TERM_COLOR : always
15
+ RUST_BACKTRACE : 1
16
+ RUSTFLAGS : -D warnings
17
+ RUSTUP_MAX_RETRIES : 10
18
+
19
+ defaults :
20
+ run :
21
+ shell : bash
22
+
23
+ jobs :
24
+ upload-assets :
25
+ name : ${{ matrix.target }}
26
+ runs-on : ${{ matrix.os }}
27
+ strategy :
28
+ matrix :
29
+ include :
30
+ - target : aarch64-unknown-linux-gnu
31
+ os : ubuntu-22.04
32
+ - target : aarch64-unknown-linux-musl
33
+ os : ubuntu-22.04
34
+ - target : aarch64-apple-darwin
35
+ os : macos-13
36
+ - target : x86_64-unknown-linux-gnu
37
+ os : ubuntu-22.04
38
+ - target : x86_64-unknown-linux-musl
39
+ os : ubuntu-22.04
40
+ - target : x86_64-apple-darwin
41
+ os : macos-13
42
+ timeout-minutes : 60
43
+ steps :
44
+ - name : Checkout repository
45
+ uses : actions/checkout@v4
46
+ - name : Install Rust toolchain
47
+ uses : dtolnay/rust-toolchain@stable
48
+ - uses : taiki-e/setup-cross-toolchain-action@v1
49
+ with :
50
+ target : ${{ matrix.target }}
51
+ if : startsWith(matrix.os, 'ubuntu') && !contains(matrix.target, '-musl')
52
+ - uses : taiki-e/install-action@v2
53
+ with :
54
+ tool : cross
55
+ if : contains(matrix.target, '-musl')
56
+ - run : echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> "${GITHUB_ENV}"
57
+ if : endsWith(matrix.target, 'windows-msvc')
58
+ - uses : taiki-e/upload-rust-binary-action@v1
59
+ with :
60
+ bin : algolia-monitor
61
+ target : ${{ matrix.target }}
62
+ tar : all
63
+ token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments