diff --git a/.github/workflows/md5-crypt.yml b/.github/workflows/md5-crypt.yml new file mode 100644 index 00000000..e8b949cb --- /dev/null +++ b/.github/workflows/md5-crypt.yml @@ -0,0 +1,63 @@ +name: md5-crypt + +on: + pull_request: + paths: + - "md5-crypt/**" + - "Cargo.*" + push: + branches: master + +defaults: + run: + working-directory: md5-crypt + +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-Dwarnings" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.56.0 # MSRV + - stable + target: + - thumbv7em-none-eabi + - wasm32-unknown-unknown + steps: + - uses: actions/checkout@v3 + - uses: RustCrypto/actions/cargo-cache@master + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} + override: true + - run: cargo build --target ${{ matrix.target }} --no-default-features + + minimal-versions: + uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master + with: + working-directory: ${{ github.workflow }} + + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.56.0 # MSRV + - stable + steps: + - uses: actions/checkout@v3 + - uses: RustCrypto/actions/cargo-cache@master + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - run: cargo test --no-default-features + - run: cargo test + - run: cargo test --all-features