1*e627067eSDarren Tuckername: Upstream self-hosted
2*e627067eSDarren Tucker
3*e627067eSDarren Tuckeron:
4*e627067eSDarren Tucker  push:
5*e627067eSDarren Tucker    branches: [ master, ci ]
6*e627067eSDarren Tucker
7*e627067eSDarren Tuckerjobs:
8*e627067eSDarren Tucker  selfhosted:
9*e627067eSDarren Tucker    if: github.repository == 'openssh/openssh-portable-selfhosted'
10*e627067eSDarren Tucker    runs-on: ${{ matrix.os }}
11*e627067eSDarren Tucker    env:
12*e627067eSDarren Tucker      TARGET_HOST: ${{ matrix.os }}
13*e627067eSDarren Tucker    strategy:
14*e627067eSDarren Tucker      fail-fast: false
15*e627067eSDarren Tucker      matrix:
16*e627067eSDarren Tucker        os: [ obsdsnap ]
17*e627067eSDarren Tucker        configs: [ default ]
18*e627067eSDarren Tucker    steps:
19*e627067eSDarren Tucker    - uses: actions/checkout@v2
20*e627067eSDarren Tucker    - name: shutdown VM if running
21*e627067eSDarren Tucker      run: vmshutdown
22*e627067eSDarren Tucker    - name: startup VM
23*e627067eSDarren Tucker      run: vmstartup
24*e627067eSDarren Tucker    - name: update source
25*e627067eSDarren Tucker      run: vmrun "cd /usr/src && cvs up -dPA usr.bin/ssh regress/usr.bin/ssh"
26*e627067eSDarren Tucker    - name: make
27*e627067eSDarren Tucker      run: vmrun "cd /usr/src/usr.bin/ssh && make obj && make clean && make"
28*e627067eSDarren Tucker    - name: make install
29*e627067eSDarren Tucker      run: vmrun "cd /usr/src/usr.bin/ssh && sudo make install"
30*e627067eSDarren Tucker    - name: make tests
31*e627067eSDarren Tucker      run: vmrun "cd /usr/src/regress/usr.bin/ssh && make obj && make clean &&  SUDO=sudo make"
32*e627067eSDarren Tucker    - name: shutdown VM
33*e627067eSDarren Tucker      if: always()
34*e627067eSDarren Tucker      run: vmshutdown
35