Skip to content

Commit cb6f940

Browse files
authored
update gh action (#371)
* update gh action * update * update * workaround build issue * update
1 parent bdc0e4c commit cb6f940

File tree

17 files changed

+36
-70
lines changed

17 files changed

+36
-70
lines changed

.github/workflows/master.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
uses: actions-rs/toolchain@v1
1717
with:
1818
profile: minimal
19-
toolchain: nightly-2020-09-27
19+
toolchain: nightly-2021-01-07
2020
override: true
2121
default: true
2222
- name: Install cargo-unleash
23-
run: cargo install cargo-unleash --version 1.0.0-alpha.10 #FIXME: change to release once it's ready
23+
run: cargo install cargo-unleash --version 1.0.0-alpha.11 #FIXME: change to release once it's ready
2424
- name: Prepare
2525
run: make Cargo.toml
2626
- name: Cargo unleash check
27-
run: cargo unleash check --skip orml-auction orml-authority orml-vesting #FIXME: https://github.com/paritytech/cargo-unleash/issues/6 or update substrate version
27+
run: cargo unleash check
2828

.github/workflows/publish_packages.yml

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -5,79 +5,17 @@ on:
55
name: Publish Package
66

77
jobs:
8-
check:
9-
name: Check
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions-rs/toolchain@v1
14-
with:
15-
toolchain: stable
16-
override: true
17-
- run: make Cargo.toml
18-
- run: cargo install cargo-unleash --version 1.0.0-alpha.10
19-
- run: cargo unleash check
20-
21-
fmt:
22-
name: Rustfmt
23-
runs-on: ubuntu-latest
24-
needs: check
25-
steps:
26-
- uses: actions/checkout@v2
27-
- uses: actions-rs/toolchain@v1
28-
with:
29-
toolchain: nightly
30-
override: true
31-
- run: rustup component add rustfmt
32-
- run: make Cargo.toml
33-
- uses: actions-rs/cargo@v1
34-
with:
35-
command: fmt
36-
args: --all
37-
38-
test:
39-
name: Tests
40-
runs-on: ubuntu-latest
41-
needs: fmt
42-
steps:
43-
- uses: actions/checkout@v2
44-
- uses: actions-rs/toolchain@v1
45-
with:
46-
toolchain: stable
47-
override: true
48-
- run: make Cargo.toml
49-
- uses: actions-rs/cargo@v1
50-
with:
51-
command: test
52-
53-
clippy:
54-
name: Clippy
55-
runs-on: ubuntu-latest
56-
needs: test
57-
steps:
58-
- uses: actions/checkout@v2
59-
- uses: actions-rs/toolchain@v1
60-
with:
61-
toolchain: stable
62-
override: true
63-
- run: make Cargo.toml
64-
- run: rustup component add clippy
65-
- uses: actions-rs/cargo@v1
66-
with:
67-
command: clippy
68-
698
publish:
709
name: Publish Package
7110
runs-on: ubuntu-latest
72-
needs: clippy
7311
steps:
7412
- uses: actions/checkout@v2
7513
- uses: actions-rs/toolchain@v1
7614
with:
7715
toolchain: stable
7816
override: true
7917
- run: make Cargo.toml
80-
- run: cargo install cargo-unleash --version 1.0.0-alpha.10
81-
- run: cargo unleash em-dragons --no-check
18+
- run: cargo install cargo-unleash --version 1.0.0-alpha.11
19+
- run: cargo unleash em-dragons
8220
env:
8321
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions-rs/toolchain@v1
2020
with:
2121
profile: minimal
22-
toolchain: nightly-2020-11-16
22+
toolchain: nightly-2021-01-07
2323
components: rustfmt
2424
target: wasm32-unknown-unknown
2525
override: true
@@ -30,10 +30,10 @@ jobs:
3030
run: make dev-format-check
3131
- name: Install clippy
3232
run: rustup component add clippy
33-
- name: Run clippy
34-
run: cargo clippy -- -D warnings
3533
- name: Update
3634
run: cargo update
35+
- name: Run clippy
36+
run: cargo clippy -- -D warnings
3737
- name: Check for Wasm
3838
run: make dev-check
3939
- name: Run tests

auction/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ frame-support = { version = "3.0.0", default-features = false }
1616
frame-system = { version = "3.0.0", default-features = false }
1717
orml-traits = { path = "../traits", version = "0.4.0", default-features = false }
1818

19+
funty = { version = "=1.1.0", default-features = false } # https://github.com/bitvecto-rs/bitvec/issues/105
20+
1921
[dev-dependencies]
2022
sp-core = { version = "3.0.0", default-features = false }
2123
sp-io = { version = "3.0.0", default-features = false }

authority/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ frame-support = { version = "3.0.0", default-features = false }
1616
frame-system = { version = "3.0.0", default-features = false }
1717
orml-traits = { path = "../traits", version = "0.4.0", default-features = false }
1818

19+
funty = { version = "=1.1.0", default-features = false } # https://github.com/bitvecto-rs/bitvec/issues/105
20+
1921
[dev-dependencies]
2022
sp-core = { version = "3.0.0", default-features = false }
2123
sp-io = { version = "3.0.0", default-features = false }

benchmarking/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ frame-support = { version = "3.0.0", default-features = false }
2020
frame-system = { version = "3.0.0", default-features = false }
2121
frame-benchmarking = { version = "3.0.0", default-features = false }
2222

23+
funty = { version = "=1.1.0", default-features = false } # https://github.com/bitvecto-rs/bitvec/issues/105
24+
2325
[dev-dependencies]
2426
hex-literal = "0.2.1"
2527

currencies/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ frame-system = { version = "3.0.0", default-features = false }
2020
orml-traits = { path = "../traits", version = "0.4.0", default-features = false }
2121
orml-utilities = { path = "../utilities", version = "0.4.0", default-features = false }
2222

23+
funty = { version = "=1.1.0", default-features = false } # https://github.com/bitvecto-rs/bitvec/issues/105
24+
2325
[dev-dependencies]
2426
sp-core = { version = "3.0.0", default-features = false }
2527
pallet-balances = "3.0.0"

gradually-update/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ sp-std = { version = "3.0.0", default-features = false }
1717
sp-core = { version = "3.0.0", default-features = false }
1818
sp-runtime = { version = "3.0.0", default-features = false }
1919

20+
funty = { version = "=1.1.0", default-features = false } # https://github.com/bitvecto-rs/bitvec/issues/105
21+
2022
[features]
2123
default = ["std"]
2224
std = [

nft/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ sp-runtime = { version = "3.0.0", default-features = false }
1616
frame-support = { version = "3.0.0", default-features = false }
1717
frame-system = { version = "3.0.0", default-features = false }
1818

19+
funty = { version = "=1.1.0", default-features = false } # https://github.com/bitvecto-rs/bitvec/issues/105
20+
1921
[dev-dependencies]
2022
sp-io = { version = "3.0.0", default-features = false }
2123
sp-core = { version = "3.0.0", default-features = false }

oracle/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ frame-system = { version = "3.0.0", default-features = false }
2222
orml-traits = { path = "../traits", version = "0.4.0", default-features = false }
2323
orml-utilities = { path = "../utilities", version = "0.4.0", default-features = false }
2424

25+
funty = { version = "=1.1.0", default-features = false } # https://github.com/bitvecto-rs/bitvec/issues/105
26+
2527
[dev-dependencies]
2628
sp-core = { version = "3.0.0", default-features = false }
2729

0 commit comments

Comments
 (0)