Skip to content

Commit

Permalink
openvpn
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Bozarth <[email protected]>
  • Loading branch information
ajbozarth committed Nov 25, 2024
1 parent 0dc2cf1 commit 4c6e7ed
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ jobs:
with:
build_main: ${{ github.event.inputs.build_main }}

openvpn:
uses: ./.github/workflows/openvpn.yml
with:
build_main: ${{ github.event.inputs.build_main }}

wireshark:
uses: ./.github/workflows/wireshark.yml
with:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/openvpn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build & Test - openvpn

on:
push:
branches: [ 'main' ]
paths: ['.github/workflows/openvpn.yml', 'openvpn/**']
pull_request:
branches: [ 'main' ]
paths: ['.github/workflows/openvpn.yml', 'openvpn/**']
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: openvpn
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
tags: oqs-openvpn

- name: Test openvpn
working-directory: ./openvpn
run: |
sh ./test.sh dilithium5 p521_kyber1024

0 comments on commit 4c6e7ed

Please sign in to comment.