Skip to content

Commit

Permalink
.github: use workspace global env vars and working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed May 30, 2020
1 parent 4914f48 commit 08eb62d
Show file tree
Hide file tree
Showing 17 changed files with 193 additions and 154 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/blake2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "blake2/**"
- "Cargo.*"

defaults:
run:
working-directory: blake2

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -31,7 +36,7 @@ jobs:
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
working-directory: blake2

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -47,9 +52,7 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --no-default-features
working-directory: blake2
- run: cargo test
working-directory: blake2
simd:
runs-on: ubuntu-latest
steps:
Expand All @@ -60,8 +63,5 @@ jobs:
toolchain: nightly
override: true
- run: cargo test --features simd
working-directory: blake2
- run: cargo test --features simd_opt
working-directory: blake2
- run: cargo test --features simd_asm
working-directory: blake2
25 changes: 14 additions & 11 deletions .github/workflows/gost94.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "gost94/**"
- "Cargo.*"

defaults:
run:
working-directory: gost94

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -30,8 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: gost94
run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -46,10 +51,8 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- working-directory: gost94
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

25 changes: 14 additions & 11 deletions .github/workflows/groestl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "groestl/**"
- "Cargo.*"

defaults:
run:
working-directory: groestl

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -30,8 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: groestl
run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -46,9 +51,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- working-directory: groestl
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
25 changes: 14 additions & 11 deletions .github/workflows/k12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "k12/**"
- "Cargo.*"

defaults:
run:
working-directory: k12

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -30,8 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: k12
run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -46,10 +51,8 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- working-directory: k12
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

25 changes: 14 additions & 11 deletions .github/workflows/md2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "md2/**"
- "Cargo.*"

defaults:
run:
working-directory: md2

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -30,8 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: md2
run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -46,10 +51,8 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- working-directory: md2
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

25 changes: 14 additions & 11 deletions .github/workflows/md4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "md4/**"
- "Cargo.*"

defaults:
run:
working-directory: md4

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -30,8 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: md4
run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -46,10 +51,8 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- working-directory: md4
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

14 changes: 9 additions & 5 deletions .github/workflows/md5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ on:
- "md5/**"
- "Cargo.*"

defaults:
run:
working-directory: md5

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -31,7 +39,7 @@ jobs:
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
working-directory: md5

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -47,10 +55,6 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
- run: cargo check
working-directory: md5
- run: cargo test --no-default-features
working-directory: md5
- run: cargo test
working-directory: md5
- run: cargo test --features asm
working-directory: md5
25 changes: 14 additions & 11 deletions .github/workflows/ripemd160.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "ripemd160/**"
- "Cargo.*"

defaults:
run:
working-directory: ripemd160

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -30,8 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: ripemd160
run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -46,10 +51,8 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- working-directory: ripemd160
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features

26 changes: 14 additions & 12 deletions .github/workflows/ripemd320.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- "Cargo.*"
push:
branches: master
paths:
- "ripemd320/**"
- "Cargo.*"

defaults:
run:
working-directory: ripemd320

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -30,8 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- working-directory: ripemd320
run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -46,10 +51,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- working-directory: ripemd320
run: |
cargo check --all-features
cargo test --no-default-features
cargo test
cargo test --all-features
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
Loading

0 comments on commit 08eb62d

Please sign in to comment.