-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (73 loc) · 2.2 KB
/
cd-registry-cli.yml
File metadata and controls
77 lines (73 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CD - Registry # Continuous Deployment
permissions:
# TODO: once `releases: write` is supported, use it instead.
contents: write
on:
push:
tags:
- "stellar-registry-cli-v[0-9]+.[0-9]+.[0-9]+*"
pull_request:
paths:
- crates/stellar-registry-cli/CHANGELOG.md
env:
CARGO_INCREMENTAL: 0
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: -D warnings
RUSTUP_MAX_RETRIES: 10
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
defaults:
run:
shell: bash
jobs:
upload-assets:
name: ${{ matrix.target }}
if: github.repository_owner == 'stellar-registry'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-pc-windows-msvc
os: windows-2022
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
- target: x86_64-apple-darwin
os: macos-14
- target: x86_64-pc-windows-msvc
os: windows-2022
- target: x86_64-unknown-linux-musl
os: ubuntu-22.04
- target: aarch64-unknown-linux-gnu
os: ubuntu-22.04-arm
- target: aarch64-unknown-linux-musl
os: ubuntu-22.04
- target: aarch64-apple-darwin
os: macos-14
- target: x86_64-unknown-freebsd
os: ubuntu-22.04
- target: universal-apple-darwin
os: macos-14
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- if: runner.os == 'Linux'
run: sudo apt-get update
- uses: taiki-e/install-action@cross
if: contains(matrix.target, '-musl')
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: stellar-registry
target: ${{ matrix.target }}
tar: all
zip: windows
archive: $tag-$target
token: ${{ secrets.GITHUB_TOKEN }}
dry-run: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc