@@ -92,18 +92,23 @@ jobs:
92
92
- platform : linux
93
93
runner : [self-hosted, Linux, X64]
94
94
target : x86_64-unknown-linux-musl
95
- - platform : linux
96
- runner : [self-hosted, Linux, ARM64]
97
- target : aarch64-unknown-linux-musl
98
- # - platform: windows
99
- # runner: [self-hosted, Linux, X64]
100
- # target: x86_64-pc-windows-gnu
95
+ binary_ext : " "
96
+ arch : x86_64
97
+ - platform : windows
98
+ runner : [self-hosted, Linux, X64]
99
+ target : x86_64-pc-windows-gnu
100
+ binary_ext : " .exe"
101
+ arch : x86_64
101
102
- platform : macos
102
103
runner : [self-hosted, Linux, X64]
103
104
target : x86_64-apple-darwin
105
+ binary_ext : " "
106
+ arch : x86_64
104
107
- platform : macos
105
108
runner : [self-hosted, Linux, ARM64]
106
109
target : aarch64-apple-darwin
110
+ binary_ext : " "
111
+ arch : aarch64
107
112
runs-on : ${{ matrix.runner }}
108
113
steps :
109
114
- uses : actions/checkout@v4
@@ -119,7 +124,6 @@ jobs:
119
124
export DOCKER_BUILDKIT=1
120
125
121
126
# Build the binary using our Dockerfile
122
- ARCH_ARG="${{ matrix.arch }}"
123
127
docker/toolchain/build.sh ${{ matrix.target }}
124
128
125
129
# Make sure dist directory exists and binary is there
@@ -135,7 +139,7 @@ jobs:
135
139
apt-get install -y unzip curl
136
140
137
141
# Install AWS CLI - use ARM version if running on ARM architecture
138
- if [ "${{ matrix.arch }}" = "arm64 " ]; then
142
+ if [ "${{ matrix.arch }}" = "aarch64 " ]; then
139
143
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
140
144
else
141
145
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
@@ -144,12 +148,12 @@ jobs:
144
148
./aws/install --update
145
149
146
150
COMMIT_SHA_SHORT="${GITHUB_SHA::7}"
147
- BINARY_PATH="dist/rivet-${{ matrix.target }}"
151
+ BINARY_PATH="dist/rivet-${{ matrix.target }}${{ matrix.binary_ext }} "
148
152
149
153
# Must specify --checksum-algorithm for compatibility with R2
150
154
aws s3 cp \
151
155
"${BINARY_PATH}" \
152
- "s3://rivet/${COMMIT_SHA_SHORT}/rivet-${{ matrix.target }}" \
156
+ "s3://rivet/${COMMIT_SHA_SHORT}/rivet-${{ matrix.target }}${{ matrix.binary_ext }} " \
153
157
--region auto \
154
158
--endpoint-url https://2a94c6a0ced8d35ea63cddc86c2681e7.r2.cloudflarestorage.com/rivet-releases \
155
159
--checksum-algorithm CRC32
0 commit comments