1 name: Upstream self-hosted
6 paths: [ '**.c', '**.h', '.github/**' ]
10 if: github.repository == 'openssh/openssh-portable-selfhosted'
14 TARGET_HOST: ${{ matrix.target }}
15 TARGET_CONFIG: ${{ matrix.config }}
19 target: [ obsdsnap, obsdsnap-i386 ]
20 config: [ default, without-openssl, ubsan ]
22 - name: shutdown VM if running
24 working-directory: ${{ runner.temp }}
25 - uses: actions/checkout@main
28 working-directory: ${{ runner.temp }}
30 run: vmrun "cd /usr/src && cvs up -dPA usr.bin/ssh regress/usr.bin/ssh"
32 run: vmrun "cd /usr/src/usr.bin/ssh && make obj && make clean && cd /usr/src/regress/usr.bin/ssh && make obj && make clean && sudo chmod -R g-w /usr/src /usr/obj"
34 run: vmrun "cd /usr/src/usr.bin/ssh && case ${{ matrix.config }} in without-openssl) make OPENSSL=no;; ubsan) make DEBUG='-fsanitize-minimal-runtime -fsanitize=undefined';; *) make; esac"
36 run: vmrun "cd /usr/src/usr.bin/ssh && sudo make install"
38 run: vmrun "cd /usr/src/regress/usr.bin/ssh && case ${{ matrix.config }} in without-openssl) make OPENSSL=no;; ubsan) make DEBUG='-fsanitize-minimal-runtime -fsanitize=undefined';; *) make; esac"
44 uses: actions/upload-artifact@main
46 name: ${{ matrix.target }}-${{ matrix.config }}-logs
48 /usr/obj/regress/usr.bin/ssh/obj/*.log
49 /usr/obj/regress/usr.bin/ssh/obj/log/*
53 working-directory: ${{ runner.temp }}