From 616d52b4f2a163b33cc853edbb4280a3ba5b8508 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 10 May 2020 12:49:21 -0700 Subject: [PATCH] .github: add universal-hash configuration This was missed in #103 --- .github/workflows/universal-hash.yml | 56 ++++++++++++++++++++++++++++ universal-hash/LICENSE-MIT | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/universal-hash.yml diff --git a/.github/workflows/universal-hash.yml b/.github/workflows/universal-hash.yml new file mode 100644 index 000000000..b33b7832b --- /dev/null +++ b/.github/workflows/universal-hash.yml @@ -0,0 +1,56 @@ +name: universal-hash + +on: + pull_request: + paths: + - "universal-hash/**" + - "Cargo.*" + push: + branches: master + paths: + - "universal-hash/**" + - "Cargo.*" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.41.0 # MSRV + - stable + target: + - thumbv7em-none-eabi + - wasm32-unknown-unknown + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + target: ${{ matrix.target }} + toolchain: ${{ matrix.rust }} + override: true + - working-directory: universal-hash + run: cargo build --no-default-features --release --target ${{ matrix.target }} + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.41.0 # MSRV + - stable + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + - run: | + cargo check --all-features + cargo test --no-default-features + cargo test + working-directory: universal-hash diff --git a/universal-hash/LICENSE-MIT b/universal-hash/LICENSE-MIT index 51e285981..468bccc2d 100644 --- a/universal-hash/LICENSE-MIT +++ b/universal-hash/LICENSE-MIT @@ -1,4 +1,4 @@ -Copyright (c) 2019 RustCrypto Developers +Copyright (c) 2019-2020 RustCrypto Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated