Skip to content

Commit

Permalink
migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
geedo0 committed Aug 20, 2024
1 parent 063384d commit b40ffec
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI Checks
on: [ push, pull_request ]
jobs:
ubuntu_build:
runs-on: ubuntu-latest
container:
image: openquantumsafe/ci-ubuntu-focal-x86_64:latest
steps:
- uses: actions/checkout@v4
- name: Set up SSH environment
run: |
mkdir -p -m 0755 /var/empty
groupadd sshd
useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd
- name: Clone liboqs
run: ./oqs-scripts/clone_liboqs.sh
- name: Build liboqs
run: ./oqs-scripts/build_liboqs.sh
- name: Build OpenSSH
run: env WITH_OPENSSL=true ./oqs-scripts/build_openssh.sh
- name: Run tests documented to pass
run: ./oqs-test/run_tests.sh
- name: Ensure we have the ssh and sshd syntax right once for each algorithm
run: python3 oqs-test/try_connection.py doone
6 changes: 5 additions & 1 deletion regress/agent-subprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@

tid="agent subprocess"

is_alive() {
kill -0 ${1} >/dev/null 2>&1 && [ `ps -p ${1} -o state=` != "Z" ]
}

trace "ensure agent exits when run as subprocess"
${SSHAGENT} sh -c "echo \$SSH_AGENT_PID >$OBJ/pidfile; sleep 1"

pid=`cat $OBJ/pidfile`

# Currently ssh-agent polls every 10s so we need to wait at least that long.
n=12
while kill -0 $pid >/dev/null 2>&1 && test "$n" -gt "0"; do
while is_alive ${pid} && test "$n" -gt "0"; do
n=$(($n - 1))
sleep 1
done
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b40ffec

Please sign in to comment.