2021-04-28 03:35:28 +02:00
name : Upstream self-hosted
on :
push :
branches : [ master, ci ]
jobs :
selfhosted :
if : github.repository == 'openssh/openssh-portable-selfhosted'
runs-on : ${{ matrix.os }}
env :
TARGET_HOST : ${{ matrix.os }}
2021-07-25 15:26:36 +02:00
SUDO : sudo
2021-04-28 03:35:28 +02:00
strategy :
fail-fast : false
matrix :
2021-06-07 06:36:32 +02:00
os : [ obsdsnap, obsdsnap-i386 ]
2021-07-24 05:02:51 +02:00
configs : [ default, without-openssl ]
2021-04-28 03:35:28 +02:00
steps :
- uses : actions/checkout@v2
- name : shutdown VM if running
run : vmshutdown
- name : startup VM
run : vmstartup
- name : update source
run : vmrun "cd /usr/src && cvs up -dPA usr.bin/ssh regress/usr.bin/ssh"
2021-07-24 05:02:51 +02:00
- name : make clean
run : vmrun "cd /usr/src/usr.bin/ssh && make obj && make clean"
2021-04-28 03:35:28 +02:00
- name : make
2021-07-24 05:02:51 +02:00
run : vmrun "cd /usr/src/usr.bin/ssh && if test '${{ matrix.configs }}' = 'without-openssl'; then make OPENSSL=no; else make; fi"
2021-04-28 03:35:28 +02:00
- name : make install
run : vmrun "cd /usr/src/usr.bin/ssh && sudo make install"
- name : make tests
2021-07-25 14:37:55 +02:00
run : vmrun "cd /usr/src/regress/usr.bin/ssh && make obj && make clean && if test '${{ matrix.configs }}' = 'without-openssl'; then make OPENSSL=no; else make; fi"
2021-06-07 11:19:23 +02:00
- name : save logs
if : failure()
uses : actions/upload-artifact@v2
with :
2021-07-24 05:02:51 +02:00
name : ${{ matrix.os }}-${{ matrix.configs }}-logs
2021-06-07 11:19:23 +02:00
path : |
/usr/obj/regress/usr.bin/ssh/*.log
2021-04-28 03:35:28 +02:00
- name : shutdown VM
if : always()
run : vmshutdown