@@ -131,132 +131,132 @@ jobs:
131
131
run : |
132
132
cargo test --workspace --no-default-features --lib --bins --tests --examples
133
133
134
- build_release :
135
- name : Build release binaries
136
- runs-on : ${{ matrix.runner }}
137
- continue-on-error : false
138
- needs : build_and_test
139
- if : ${{ always() && github.ref_name=='main' }}
140
- strategy :
141
- fail-fast : false
142
- matrix :
143
- name : [ubuntu-latest, ubuntu-arm-latest, macOS-latest, macOS-arm-latest]
144
- rust : [stable]
145
- experimental : [false]
146
- include :
147
- - name : ubuntu-arm-latest
148
- os : ubuntu-latest
149
- release-os : linux
150
- release-arch : aarch64
151
- protoc-arch : linux-aarch_64
152
- runner : [self-hosted, linux, ARM64]
153
- - name : ubuntu-latest
154
- os : ubuntu-latest
155
- release-os : linux
156
- release-arch : amd64
157
- protoc-arch : linux-x86_64
158
- runner : [self-hosted, linux, X64]
159
- - name : macOS-latest
160
- os : macOS-latest
161
- release-os : darwin
162
- release-arch : x86_64
163
- protoc-arch : osx-x86_64
164
- runner : [self-hosted, macOS, X64]
165
- - name : macOS-arm-latest
166
- os : macOS-latest
167
- release-os : darwin
168
- release-arch : aarch64
169
- protoc-arch : osx-aarch_64
170
- runner : [self-hosted, macOS, ARM64]
171
- # - os: windows-latest
172
- # release-os: windows
173
- # release-arch: amd64
174
- # runner: [windows-latest]
175
- env :
176
- RUST_BACKTRACE : full
177
- # Force not building debuginfo to save space on disk.
178
- RUSTFLAGS : " -C debuginfo=0"
179
- RUSTV : ${{ matrix.rust }}
180
- steps :
181
- - uses : actions/checkout@master
182
-
183
- - name : Set build arch
184
- run : |
185
- echo "RELEASE_ARCH=${{ matrix.release-arch }}" >> $GITHUB_ENV
186
- echo "RELEASE_OS=${{ matrix.release-os }}" >> $GITHUB_ENV
187
- echo "PROTOC_ARCH=${{ matrix.protoc-arch }}" >> $GITHUB_ENV
188
-
189
- - name : Install ${{ matrix.rust }}
190
- run : |
191
- rustup toolchain install ${{ matrix.rust }}
192
-
193
- - name : Install Protoc windows
194
- if : matrix.os == 'windows-latest'
195
- uses : arduino/setup-protoc@v1
196
- with :
197
- version : ' 3.20.1'
198
- repo-token : ${{ secrets.GITHUB_TOKEN }}
199
-
200
- - name : Install Protoc
201
- if : matrix.os != 'windows-latest'
202
- run : |
203
- PROTOC_VERSION=3.20.1
204
- PROTOC_ZIP=protoc-$PROTOC_VERSION-$PROTOC_ARCH.zip
205
- curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP
206
- sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
207
- sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
208
- rm -f $PROTOC_ZIP
209
- echo "PROTOC=/usr/local/bin/protoc" >> $GITHUB_ENV
210
- echo "PROTOC_INCLUDE=/usr/local/include" >> $GITHUB_ENV
211
-
212
- - name : build release
213
- run : |
214
- cargo build --profile optimized-release -p iroh -p iroh-gateway -p iroh-p2p -p iroh-store -p iroh-one
215
-
216
- - name : Setup awscli on linux
217
- if : matrix.name == 'ubuntu-latest'
218
- run : |
219
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
220
- unzip awscliv2.zip
221
- sudo ./aws/install --update
222
-
223
- - name : Setup awscli on linux
224
- if : matrix.name == 'ubuntu-arm-latest'
225
- run : |
226
- curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
227
- unzip awscliv2.zip
228
- sudo ./aws/install --update
229
-
230
- - name : Setup awscli on mac
231
- if : matrix.os == 'macos-latest'
232
- run : |
233
- curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
234
- sudo installer -pkg AWSCLIV2.pkg -target /
235
-
236
- - name : Set aws credentials
237
- if : matrix.os != 'windows-latest'
238
- run : |
239
- echo "AWS_ACCESS_KEY_ID=${{secrets.S3_ACCESS_KEY_ID}}" >> $GITHUB_ENV
240
- echo "AWS_SECRET_ACCESS_KEY=${{secrets.S3_ACCESS_KEY}}" >> $GITHUB_ENV
241
- echo "AWS_DEFAULT_REGION=us-west-2" >> $GITHUB_ENV
242
-
243
- - name : push release
244
- if : matrix.os != 'windows-latest'
245
- run : |
246
- aws s3 cp ./target/optimized-release/iroh-gateway s3://vorc/iroh-gateway-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
247
- aws s3 cp ./target/optimized-release/iroh-p2p s3://vorc/iroh-p2p-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
248
- aws s3 cp ./target/optimized-release/iroh-store s3://vorc/iroh-store-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
249
- aws s3 cp ./target/optimized-release/iroh s3://vorc/iroh-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
250
- aws s3 cp ./target/optimized-release/iroh-one s3://vorc/iroh-one-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
251
-
252
- - name : push release latest
253
- if : matrix.os != 'windows-latest'
254
- run : |
255
- aws s3 cp ./target/optimized-release/iroh-gateway s3://vorc/iroh-gateway-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
256
- aws s3 cp ./target/optimized-release/iroh-p2p s3://vorc/iroh-p2p-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
257
- aws s3 cp ./target/optimized-release/iroh-store s3://vorc/iroh-store-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
258
- aws s3 cp ./target/optimized-release/iroh s3://vorc/iroh-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
259
- aws s3 cp ./target/optimized-release/iroh-one s3://vorc/iroh-one-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
134
+ # build_release:
135
+ # name: Build release binaries
136
+ # runs-on: ${{ matrix.runner }}
137
+ # continue-on-error: false
138
+ # needs: build_and_test
139
+ # if: ${{ always() && github.ref_name=='main' }}
140
+ # strategy:
141
+ # fail-fast: false
142
+ # matrix:
143
+ # name: [ubuntu-latest, ubuntu-arm-latest, macOS-latest, macOS-arm-latest]
144
+ # rust: [stable]
145
+ # experimental: [false]
146
+ # include:
147
+ # - name: ubuntu-arm-latest
148
+ # os: ubuntu-latest
149
+ # release-os: linux
150
+ # release-arch: aarch64
151
+ # protoc-arch: linux-aarch_64
152
+ # runner: [self-hosted, linux, ARM64]
153
+ # - name: ubuntu-latest
154
+ # os: ubuntu-latest
155
+ # release-os: linux
156
+ # release-arch: amd64
157
+ # protoc-arch: linux-x86_64
158
+ # runner: [self-hosted, linux, X64]
159
+ # - name: macOS-latest
160
+ # os: macOS-latest
161
+ # release-os: darwin
162
+ # release-arch: x86_64
163
+ # protoc-arch: osx-x86_64
164
+ # runner: [self-hosted, macOS, X64]
165
+ # - name: macOS-arm-latest
166
+ # os: macOS-latest
167
+ # release-os: darwin
168
+ # release-arch: aarch64
169
+ # protoc-arch: osx-aarch_64
170
+ # runner: [self-hosted, macOS, ARM64]
171
+ # # - os: windows-latest
172
+ # # release-os: windows
173
+ # # release-arch: amd64
174
+ # # runner: [windows-latest]
175
+ # env:
176
+ # RUST_BACKTRACE: full
177
+ # # Force not building debuginfo to save space on disk.
178
+ # RUSTFLAGS: "-C debuginfo=0"
179
+ # RUSTV: ${{ matrix.rust }}
180
+ # steps:
181
+ # - uses: actions/checkout@master
182
+
183
+ # - name: Set build arch
184
+ # run: |
185
+ # echo "RELEASE_ARCH=${{ matrix.release-arch }}" >> $GITHUB_ENV
186
+ # echo "RELEASE_OS=${{ matrix.release-os }}" >> $GITHUB_ENV
187
+ # echo "PROTOC_ARCH=${{ matrix.protoc-arch }}" >> $GITHUB_ENV
188
+
189
+ # - name: Install ${{ matrix.rust }}
190
+ # run: |
191
+ # rustup toolchain install ${{ matrix.rust }}
192
+
193
+ # - name: Install Protoc windows
194
+ # if: matrix.os == 'windows-latest'
195
+ # uses: arduino/setup-protoc@v1
196
+ # with:
197
+ # version: '3.20.1'
198
+ # repo-token: ${{ secrets.GITHUB_TOKEN }}
199
+
200
+ # - name: Install Protoc
201
+ # if: matrix.os != 'windows-latest'
202
+ # run: |
203
+ # PROTOC_VERSION=3.20.1
204
+ # PROTOC_ZIP=protoc-$PROTOC_VERSION-$PROTOC_ARCH.zip
205
+ # curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/$PROTOC_ZIP
206
+ # sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
207
+ # sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
208
+ # rm -f $PROTOC_ZIP
209
+ # echo "PROTOC=/usr/local/bin/protoc" >> $GITHUB_ENV
210
+ # echo "PROTOC_INCLUDE=/usr/local/include" >> $GITHUB_ENV
211
+
212
+ # - name: build release
213
+ # run: |
214
+ # cargo build --profile optimized-release -p iroh -p iroh-gateway -p iroh-p2p -p iroh-store -p iroh-one
215
+
216
+ # - name: Setup awscli on linux
217
+ # if: matrix.name == 'ubuntu-latest'
218
+ # run: |
219
+ # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
220
+ # unzip awscliv2.zip
221
+ # sudo ./aws/install --update
222
+
223
+ # - name: Setup awscli on linux
224
+ # if: matrix.name == 'ubuntu-arm-latest'
225
+ # run: |
226
+ # curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
227
+ # unzip awscliv2.zip
228
+ # sudo ./aws/install --update
229
+
230
+ # - name: Setup awscli on mac
231
+ # if: matrix.os == 'macos-latest'
232
+ # run: |
233
+ # curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
234
+ # sudo installer -pkg AWSCLIV2.pkg -target /
235
+
236
+ # - name: Set aws credentials
237
+ # if: matrix.os != 'windows-latest'
238
+ # run: |
239
+ # echo "AWS_ACCESS_KEY_ID=${{secrets.S3_ACCESS_KEY_ID}}" >> $GITHUB_ENV
240
+ # echo "AWS_SECRET_ACCESS_KEY=${{secrets.S3_ACCESS_KEY}}" >> $GITHUB_ENV
241
+ # echo "AWS_DEFAULT_REGION=us-west-2" >> $GITHUB_ENV
242
+
243
+ # - name: push release
244
+ # if: matrix.os != 'windows-latest'
245
+ # run: |
246
+ # aws s3 cp ./target/optimized-release/iroh-gateway s3://vorc/iroh-gateway-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
247
+ # aws s3 cp ./target/optimized-release/iroh-p2p s3://vorc/iroh-p2p-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
248
+ # aws s3 cp ./target/optimized-release/iroh-store s3://vorc/iroh-store-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
249
+ # aws s3 cp ./target/optimized-release/iroh s3://vorc/iroh-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
250
+ # aws s3 cp ./target/optimized-release/iroh-one s3://vorc/iroh-one-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress
251
+
252
+ # - name: push release latest
253
+ # if: matrix.os != 'windows-latest'
254
+ # run: |
255
+ # aws s3 cp ./target/optimized-release/iroh-gateway s3://vorc/iroh-gateway-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
256
+ # aws s3 cp ./target/optimized-release/iroh-p2p s3://vorc/iroh-p2p-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
257
+ # aws s3 cp ./target/optimized-release/iroh-store s3://vorc/iroh-store-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
258
+ # aws s3 cp ./target/optimized-release/iroh s3://vorc/iroh-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
259
+ # aws s3 cp ./target/optimized-release/iroh-one s3://vorc/iroh-one-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
260
260
261
261
coverage :
262
262
name : Coverage
0 commit comments