diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39a6e21..9632413 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,3 +56,8 @@ jobs: uses: ./.github/workflows/openssl3.yml with: build_main: ${{ github.event.inputs.build_main }} + + wireshark: + uses: ./.github/workflows/wireshark.yml + with: + build_main: ${{ github.event.inputs.build_main }} diff --git a/.github/workflows/wireshark.yml b/.github/workflows/wireshark.yml new file mode 100644 index 0000000..b045356 --- /dev/null +++ b/.github/workflows/wireshark.yml @@ -0,0 +1,50 @@ +name: Build - wireshark + +on: + push: + branches: [ 'main' ] + paths: ['.github/workflows/wireshark.yml', 'wireshark/**'] + pull_request: + branches: [ 'main' ] + paths: ['.github/workflows/wireshark.yml', 'wireshark/**'] + workflow_call: + inputs: + build_main: + description: "Build using liboqs and oqsprovider main branches" + required: false + default: false + type: boolean + +env: + build-args: | + LIBOQS_TAG=main + OQSPROVIDER_TAG=main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + platform: + - linux/amd64 + - linux/arm64 + steps: + - uses: actions/checkout@v3 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build the Docker image + uses: docker/build-push-action@v6 + with: + load: true + context: wireshark + platforms: ${{ matrix.platform }} + build-args: | + ${{ (github.event.inputs.build_main == 'true') && env.build-args || null }} + tags: oqs-wireshark