Skip to content

Commit 344c26c

Browse files
committed
Update workflow for github actions
1 parent 7565262 commit 344c26c

3 files changed

Lines changed: 46 additions & 46 deletions

File tree

.circleci/config.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ workflows:
2929
jobs:
3030
contract_cw721_migration:
3131
docker:
32-
- image: rust:1.83.0
32+
- image: rust:1.91.1
3333
working_directory: ~/project/contracts/collections/cw721-migration
3434
steps:
3535
- checkout:
@@ -39,7 +39,7 @@ jobs:
3939
command: rustc --version; cargo --version; rustup --version
4040
- restore_cache:
4141
keys:
42-
- cargocache-cw721-migration-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
42+
- cargocache-cw721-migration-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
4343
- run:
4444
name: Unit Tests
4545
environment:
@@ -49,11 +49,11 @@ jobs:
4949
paths:
5050
- /usr/local/cargo/registry
5151
- target
52-
key: cargocache-cw721-migration-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
52+
key: cargocache-cw721-migration-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
5353

5454
contract_base_factory:
5555
docker:
56-
- image: rust:1.83.0
56+
- image: rust:1.91.1
5757
working_directory: ~/project/contracts/factories/base-factory
5858
steps:
5959
- checkout:
@@ -63,7 +63,7 @@ jobs:
6363
command: rustc --version; cargo --version; rustup --version
6464
- restore_cache:
6565
keys:
66-
- cargocache-base-factory-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
66+
- cargocache-base-factory-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
6767
- run:
6868
name: Unit Tests
6969
environment:
@@ -85,11 +85,11 @@ jobs:
8585
paths:
8686
- /usr/local/cargo/registry
8787
- target
88-
key: cargocache-base-factory-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
88+
key: cargocache-base-factory-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
8989

9090
contract_base_minter:
9191
docker:
92-
- image: rust:1.83.0
92+
- image: rust:1.91.1
9393
working_directory: ~/project/contracts/minters/base-minter
9494
steps:
9595
- checkout:
@@ -99,7 +99,7 @@ jobs:
9999
command: rustc --version; cargo --version; rustup --version
100100
- restore_cache:
101101
keys:
102-
- cargocache-base-minter-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
102+
- cargocache-base-minter-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
103103
- run:
104104
name: Unit Tests
105105
environment:
@@ -121,11 +121,11 @@ jobs:
121121
paths:
122122
- /usr/local/cargo/registry
123123
- target
124-
key: cargocache-base-minter-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
124+
key: cargocache-base-minter-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
125125

126126
contract_vending_factory:
127127
docker:
128-
- image: rust:1.83.0
128+
- image: rust:1.91.1
129129
working_directory: ~/project/contracts/factories/vending-factory
130130
steps:
131131
- checkout:
@@ -135,7 +135,7 @@ jobs:
135135
command: rustc --version; cargo --version; rustup --version
136136
- restore_cache:
137137
keys:
138-
- cargocache-vending-factory-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
138+
- cargocache-vending-factory-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
139139
- run:
140140
name: Unit Tests
141141
environment:
@@ -157,11 +157,11 @@ jobs:
157157
paths:
158158
- /usr/local/cargo/registry
159159
- target
160-
key: cargocache-vending-factory-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
160+
key: cargocache-vending-factory-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
161161

162162
contract_vending_minter:
163163
docker:
164-
- image: rust:1.83.0
164+
- image: rust:1.91.1
165165
working_directory: ~/project/contracts/minters/vending-minter
166166
steps:
167167
- checkout:
@@ -171,7 +171,7 @@ jobs:
171171
command: rustc --version; cargo --version; rustup --version
172172
- restore_cache:
173173
keys:
174-
- cargocache-vending-minter-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
174+
- cargocache-vending-minter-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
175175
- run:
176176
name: Unit Tests
177177
environment:
@@ -193,11 +193,11 @@ jobs:
193193
paths:
194194
- /usr/local/cargo/registry
195195
- target
196-
key: cargocache-vending-minter-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
196+
key: cargocache-vending-minter-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
197197

198198
contract_open_edition_factory:
199199
docker:
200-
- image: rust:1.83.0
200+
- image: rust:1.91.1
201201
working_directory: ~/project/contracts/factories/open-edition-factory
202202
steps:
203203
- checkout:
@@ -207,7 +207,7 @@ jobs:
207207
command: rustc --version; cargo --version; rustup --version
208208
- restore_cache:
209209
keys:
210-
- cargocache-open-edition-factory-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
210+
- cargocache-open-edition-factory-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
211211
- run:
212212
name: Unit Tests
213213
environment:
@@ -229,11 +229,11 @@ jobs:
229229
paths:
230230
- /usr/local/cargo/registry
231231
- target
232-
key: cargocache-open-edition-factory-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
232+
key: cargocache-open-edition-factory-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
233233

234234
contract_open_edition_minter:
235235
docker:
236-
- image: rust:1.83.0
236+
- image: rust:1.91.1
237237
working_directory: ~/project/contracts/minters/open-edition-minter
238238
steps:
239239
- checkout:
@@ -243,7 +243,7 @@ jobs:
243243
command: rustc --version; cargo --version; rustup --version
244244
- restore_cache:
245245
keys:
246-
- cargocache-open-edition-minter-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
246+
- cargocache-open-edition-minter-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
247247
- run:
248248
name: Unit Tests
249249
environment:
@@ -265,11 +265,11 @@ jobs:
265265
paths:
266266
- /usr/local/cargo/registry
267267
- target
268-
key: cargocache-open-edition-minter-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
268+
key: cargocache-open-edition-minter-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
269269

270270
contract_whitelist:
271271
docker:
272-
- image: rust:1.83.0
272+
- image: rust:1.91.1
273273
working_directory: ~/project/contracts/whitelists/whitelist
274274
steps:
275275
- checkout:
@@ -279,7 +279,7 @@ jobs:
279279
command: rustc --version; cargo --version; rustup --version
280280
- restore_cache:
281281
keys:
282-
- cargocache-whitelist-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
282+
- cargocache-whitelist-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
283283
- run:
284284
name: Unit Tests
285285
environment:
@@ -301,10 +301,10 @@ jobs:
301301
paths:
302302
- /usr/local/cargo/registry
303303
- target
304-
key: cargocache-whitelist-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
304+
key: cargocache-whitelist-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
305305
test-suite:
306306
docker:
307-
- image: rust:1.83.0
307+
- image: rust:1.91.1
308308
working_directory: ~/project/test-suite
309309
steps:
310310
- checkout:
@@ -314,7 +314,7 @@ jobs:
314314
command: rustc --version; cargo --version; rustup --version
315315
- restore_cache:
316316
keys:
317-
- cargocache-test-suite-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
317+
- cargocache-test-suite-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
318318
- run:
319319
name: Unit Tests
320320
environment:
@@ -324,11 +324,11 @@ jobs:
324324
paths:
325325
- /usr/local/cargo/registry
326326
- target
327-
key: cargocache-test-suite-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
327+
key: cargocache-test-suite-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
328328

329329
package_sg_utils:
330330
docker:
331-
- image: rust:1.83.0
331+
- image: rust:1.91.1
332332
working_directory: ~/project/packages/sg-utils
333333
steps:
334334
- checkout:
@@ -338,7 +338,7 @@ jobs:
338338
command: rustc --version; cargo --version; rustup --version
339339
- restore_cache:
340340
keys:
341-
- cargocache-sg-utils-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
341+
- cargocache-sg-utils-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
342342
- run:
343343
name: Unit Tests
344344
environment:
@@ -348,11 +348,11 @@ jobs:
348348
paths:
349349
- /usr/local/cargo/registry
350350
- target
351-
key: cargocache-sg-utils-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
351+
key: cargocache-sg-utils-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
352352

353353
sg-eth-airdrop:
354354
docker:
355-
- image: rust:1.83.0
355+
- image: rust:1.91.1
356356
working_directory: ~/project/contracts/sg-eth-airdrop
357357
steps:
358358
- checkout:
@@ -362,7 +362,7 @@ jobs:
362362
command: rustc --version; cargo --version; rustup --version
363363
- restore_cache:
364364
keys:
365-
- cargocache-sg-eth-airdrop-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
365+
- cargocache-sg-eth-airdrop-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
366366
- run:
367367
name: Unit Tests
368368
environment:
@@ -384,19 +384,19 @@ jobs:
384384
paths:
385385
- /usr/local/cargo/registry
386386
- target
387-
key: cargocache-sg-eth-airdrop-rust:1.83.0-{{ checksum "~/project/Cargo.lock" }}
387+
key: cargocache-sg-eth-airdrop-rust:1.91.1-{{ checksum "~/project/Cargo.lock" }}
388388

389389
lint:
390390
docker:
391-
- image: rust:1.83.0
391+
- image: rust:1.91.1
392392
steps:
393393
- checkout
394394
- run:
395395
name: Version information
396396
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
397397
- restore_cache:
398398
keys:
399-
- cargocache-v2-lint-rust:1.83.0-{{ checksum "Cargo.lock" }}
399+
- cargocache-v2-lint-rust:1.91.1-{{ checksum "Cargo.lock" }}
400400
- run:
401401
name: Add rustfmt component
402402
command: rustup component add rustfmt
@@ -415,15 +415,15 @@ jobs:
415415
- target/debug/.fingerprint
416416
- target/debug/build
417417
- target/debug/deps
418-
key: cargocache-v2-lint-rust:1.83.0-{{ checksum "Cargo.lock" }}
418+
key: cargocache-v2-lint-rust:1.91.1-{{ checksum "Cargo.lock" }}
419419

420420
# This runs one time on the top level to ensure all contracts compile properly into wasm.
421421
# We don't run the wasm build per contract build, and then reuse a lot of the same dependencies, so this speeds up CI time
422422
# for all the other tests.
423423
# We also sanity-check the resultant wasm files.
424424
wasm-build:
425425
docker:
426-
- image: rust:1.83.0
426+
- image: rust:1.91.1
427427
steps:
428428
- checkout:
429429
path: ~/project
@@ -432,7 +432,7 @@ jobs:
432432
command: rustc --version; cargo --version; rustup --version
433433
- restore_cache:
434434
keys:
435-
- cargocache-wasm-rust-no-wasm:1.83.0-{{ checksum "~/project/Cargo.lock" }}
435+
- cargocache-wasm-rust-no-wasm:1.91.1-{{ checksum "~/project/Cargo.lock" }}
436436
- run:
437437
name: Add wasm32 target
438438
command: rustup target add wasm32-unknown-unknown
@@ -479,7 +479,7 @@ jobs:
479479
- /target/debug
480480
- /target/release
481481
- /target/tarpaulin
482-
key: cargocache-wasm-rust-no-wasm:1.83.0-{{ checksum "~/project/Cargo.lock" }}
482+
key: cargocache-wasm-rust-no-wasm:1.91.1-{{ checksum "~/project/Cargo.lock" }}
483483
- run:
484484
name: Check wasm contracts
485485
command: |

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
options: --security-opt seccomp=unconfined
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: Generate code coverage
1818
run: |
1919
cargo tarpaulin --verbose --workspace --timeout 120 --out Xml --avoid-cfg-tarpaulin
2020
- name: Upload to codecov.io
21-
uses: codecov/codecov-action@v2
21+
uses: codecov/codecov-action@v4
2222
with:
2323
token: ${{secrets.CODECOV_TOKEN}}
2424
fail_ci_if_error: true

.github/workflows/e2e.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
GAS_LIMIT: 150000000
1717
steps:
1818
- name: Checkout sources
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Install latest toolchain
2222
uses: dtolnay/rust-toolchain@stable
@@ -25,7 +25,7 @@ jobs:
2525
targets: wasm32-unknown-unknown
2626

2727
- name: Rust Dependencies Cache
28-
uses: actions/cache@v3
28+
uses: actions/cache@v4
2929
with:
3030
path: |
3131
~/.cargo/registry/index/
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Mainnet block GAS_LIMIT changed
4242
if: ${{ env.MAINNET_GAS_LIMIT != env.GAS_LIMIT }}
43-
uses: actions/github-script@v6
43+
uses: actions/github-script@v7
4444
with:
4545
script: core.setFailed(`Integration tests must update GAS_LIMIT from ${process.env.GAS_LIMIT} to ${process.env.MAINNET_GAS_LIMIT}`)
4646

@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: Upload Gas Report
6666
if: ${{ github.ref == 'refs/heads/main' }}
67-
uses: actions/upload-artifact@v3
67+
uses: actions/upload-artifact@v4
6868
with:
6969
name: launchpad-gas-report-${{ env.GIT_BRANCH }}
7070
path: e2e/gas_report.json
@@ -79,7 +79,7 @@ jobs:
7979
# NOTE: We can't use github's `actions/download-artifact` because it doesnt support
8080
# downloading an artifact cross workflows yet
8181
# https://github.com/actions/download-artifact/issues/3
82-
uses: dawidd6/action-download-artifact@v2
82+
uses: dawidd6/action-download-artifact@v6
8383
with:
8484
branch: main
8585
workflow: e2e.yml

0 commit comments

Comments
 (0)