-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests the following: - `md5`: Linux/x86, Linux x86_64 - `sha1`: Linux/x86, Linux x86_64, ARM64 (cross) - `sha2`: Linux/x86, Linux x86_64, ARM64 (cross)
- Loading branch information
Showing
7 changed files
with
278 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: md5 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "md5/**" | ||
- "Cargo.*" | ||
push: | ||
branches: master | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
include: | ||
# 32-bit Linux/x86 | ||
- target: i686-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
toolchain: 1.41.0 # MSRV | ||
deps: sudo apt install gcc-multilib | ||
- target: i686-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
toolchain: stable | ||
deps: sudo apt install gcc-multilib | ||
|
||
# 64-bit Linux/x86_64 | ||
- target: x86_64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
toolchain: 1.41.0 # MSRV | ||
deps: true | ||
- target: x86_64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
toolchain: stable | ||
deps: true | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: ${{ matrix.deps }} | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
target: ${{ matrix.target }} | ||
override: true | ||
- uses: marcopolo/cargo@master | ||
with: | ||
command: test | ||
working-directory: md5 | ||
args: --target ${{ matrix.target }} --release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: sha1 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "sha1/**" | ||
- "Cargo.*" | ||
push: | ||
branches: master | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
include: | ||
# 32-bit Linux/x86 | ||
- target: i686-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: 1.41.0 # MSRV | ||
use_cross: false | ||
deps: sudo apt install gcc-multilib | ||
- target: i686-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: stable | ||
use_cross: false | ||
deps: sudo apt install gcc-multilib | ||
|
||
# 64-bit Linux/x86_64 | ||
- target: x86_64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: 1.41.0 # MSRV | ||
use_cross: false | ||
deps: true | ||
- target: x86_64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: stable | ||
use_cross: false | ||
deps: true | ||
|
||
# ARM64 | ||
- target: aarch64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: 1.41.0 # MSRV | ||
use_cross: true | ||
deps: true | ||
- target: aarch64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: stable | ||
use_cross: true | ||
deps: true | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: ${{ matrix.deps }} | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
target: ${{ matrix.target }} | ||
override: true | ||
- uses: marcopolo/cargo@master | ||
with: | ||
command: test | ||
working-directory: sha1 | ||
use-cross: ${{ matrix.use_cross }} | ||
args: --target ${{ matrix.target }} --release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: sha2 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "sha2/**" | ||
- "Cargo.*" | ||
push: | ||
branches: master | ||
|
||
defaults: | ||
run: | ||
working-directory: sha2 | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Dwarnings" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
include: | ||
# 32-bit Linux/x86 | ||
- target: i686-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: 1.41.0 # MSRV | ||
use_cross: false | ||
deps: sudo apt install gcc-multilib | ||
- target: i686-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: stable | ||
use_cross: false | ||
deps: sudo apt install gcc-multilib | ||
|
||
# 64-bit Linux/x86_64 | ||
- target: x86_64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: 1.41.0 # MSRV | ||
use_cross: false | ||
deps: true | ||
- target: x86_64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: stable | ||
use_cross: false | ||
deps: true | ||
|
||
# ARM64 | ||
- target: aarch64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: 1.41.0 # MSRV | ||
use_cross: true | ||
deps: true | ||
- target: aarch64-unknown-linux-gnu | ||
platform: ubuntu-latest | ||
rust: stable | ||
use_cross: true | ||
deps: true | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: ${{ matrix.deps }} | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
target: ${{ matrix.target }} | ||
override: true | ||
- uses: marcopolo/cargo@master | ||
with: | ||
command: test | ||
working-directory: sha1 | ||
use-cross: ${{ matrix.use_cross }} | ||
args: --target ${{ matrix.target }} --release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Workspace | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- README.md | ||
push: | ||
branches: master | ||
paths-ignore: | ||
- README.md | ||
|
||
jobs: | ||
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: 1.41.0 # MSRV | ||
components: clippy | ||
override: true | ||
- run: cargo clippy --all -- -D warnings | ||
|
||
# TODO(tarcieri): enable rustfmt | ||
# rustfmt: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout sources | ||
# uses: actions/checkout@v1 | ||
# | ||
# - name: Install stable toolchain | ||
# uses: actions-rs/toolchain@v1 | ||
# with: | ||
# profile: minimal | ||
# toolchain: stable | ||
# components: rustfmt | ||
# override: true | ||
# - name: Run cargo fmt | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: fmt | ||
# args: --all -- --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
target/ | ||
*/target/ | ||
*/*/target/ | ||
Cargo.lock |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.