Cargo.toml: Remove unused sha2 dependency #678
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
name: Continuous Integration | |
on: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
trigger_docker: | |
description: "'parsec-openssl-provider-test' if docker build should be triggered" | |
required: false | |
default: "" | |
push: | |
env: | |
TEST_DOCKER_IMAGE: ${{ github.event.inputs.trigger_docker || 'ghcr.io/parallaxsecond/parsec-openssl-provider-test' }} | |
jobs: | |
build-and-export-test-docker: | |
runs-on: ubuntu-latest | |
# For running this job we need to manually trigger the CI and set the variable | |
if: ${{ github.event.inputs.trigger_docker == 'parsec-openssl-provider-test' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the docker container | |
run: pushd tests/docker_image && docker build -t parsec-openssl-provider-test -f parsec-openssl-provider-test.Dockerfile . && popd | |
- name: Export the docker container | |
run: docker save parsec-openssl-provider-test > /tmp/parsec-openssl-provider-test.tar | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: parsec-openssl-provider-test | |
path: /tmp/parsec-openssl-provider-test.tar | |
build-and-test: | |
name: Build Parsec OpenSSL Provider and run tests | |
runs-on: ubuntu-latest | |
if: ${{ always() }} | |
needs: [build-and-export-test-docker] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run the container to execute the test script | |
uses: ./.github/actions/ci_script | |
with: | |
ci-flags: "build-and-test" | |
build-msrv: | |
name: MSRV - Build Parsec OpenSSL Provider | |
runs-on: ubuntu-latest | |
if: ${{ always() }} | |
needs: [build-and-export-test-docker] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run the container to execute the test script | |
uses: ./.github/actions/ci_script | |
with: | |
ci-flags: "build" | |
static-checks: | |
name: Run static checks | |
runs-on: ubuntu-latest | |
if: ${{ always() }} | |
needs: [build-and-export-test-docker] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run the container to execute the test script | |
uses: ./.github/actions/ci_script | |
with: | |
ci-flags: "static-checks" |