Skip to content

Commit 0360c98

Browse files
geedo0SWilson4
andauthored
Migrate CI to Github Actions (open-quantum-safe#168)
Co-authored-by: Spencer Wilson <[email protected]>
1 parent 063384d commit 0360c98

File tree

13 files changed

+30
-53
lines changed

13 files changed

+30
-53
lines changed

.circleci/config.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/ubuntu.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI Checks
2+
on: [ push, pull_request, workflow_dispatch ]
3+
jobs:
4+
ubuntu_build:
5+
runs-on: ubuntu-latest
6+
container:
7+
image: openquantumsafe/ci-ubuntu-focal-x86_64:latest
8+
steps:
9+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
10+
- name: Set up SSH environment
11+
run: |
12+
mkdir -p -m 0755 /var/empty
13+
groupadd sshd
14+
useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd
15+
- name: Clone liboqs
16+
run: ./oqs-scripts/clone_liboqs.sh
17+
- name: Build liboqs
18+
run: ./oqs-scripts/build_liboqs.sh
19+
- name: Build OpenSSH
20+
run: env WITH_OPENSSL=true ./oqs-scripts/build_openssh.sh
21+
- name: Run tests documented to pass
22+
run: ./oqs-test/run_tests.sh
23+
- name: Ensure we have the ssh and sshd syntax right once for each algorithm
24+
run: python3 oqs-test/try_connection.py doone

regress/agent-subprocess.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33

44
tid="agent subprocess"
55

6+
is_alive() {
7+
kill -0 ${1} >/dev/null 2>&1 && [ `ps -p ${1} -o state=` != "Z" ]
8+
}
9+
610
trace "ensure agent exits when run as subprocess"
711
${SSHAGENT} sh -c "echo \$SSH_AGENT_PID >$OBJ/pidfile; sleep 1"
812

913
pid=`cat $OBJ/pidfile`
1014

1115
# Currently ssh-agent polls every 10s so we need to wait at least that long.
1216
n=12
13-
while kill -0 $pid >/dev/null 2>&1 && test "$n" -gt "0"; do
17+
while is_alive ${pid} && test "$n" -gt "0"; do
1418
n=$(($n - 1))
1519
sleep 1
1620
done

regress/percent.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ USERID=`id -u`
1313
HOST=`hostname | cut -f1 -d.`
1414
HOSTNAME=`hostname`
1515
HASH=""
16+
HOME=`grep $USER /etc/passwd | cut -d ':' -f6`
1617

1718
# Localcommand is evaluated after connection because %T is not available
1819
# until then. Because of this we use a different method of exercising it,
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)