openssh/.github/workflows/selfhosted.yml

65 lines
1.9 KiB
YAML
Raw Normal View History

name: C/C++ CI self-hosted
on:
push:
branches: [ master, ci ]
jobs:
selfhosted:
if: github.repository == 'openssh/openssh-portable-selfhosted'
runs-on: ${{ matrix.vm }}
env:
TARGET_HOST: ${{ matrix.vm }}
SUDO: sudo
strategy:
fail-fast: false
# We use a matrix in two parts: firstly all of the VMs are tested with the
# default config. "vm" corresponds to a label associated with the worker.
matrix:
2021-02-18 05:30:01 +00:00
vm: [dfly30, dfly48, dfly58, sol10, sol11, bbone, fbsd12]
configs:
- default
# Then we include any extra configs we want to test for specific VMs.
include:
- { vm: dfly30, configs: without-openssl}
- { vm: dfly48, configs: pam }
- { vm: dfly58, configs: pam }
2021-02-18 05:30:01 +00:00
- { vm: fbsd12, configs: pam }
- { vm: sol10, configs: pam }
- { vm: sol11, configs: pam }
- { vm: sol11, configs: sol64 }
# - { vm: sol11, configs: sol64-pam }
steps:
- uses: actions/checkout@v2
- name: autoreconf
run: autoreconf
- name: shutdown VM if running
run: vmshutdown
- name: startup VM
run: vmstartup
- name: configure
run: vmrun ./.github/configure.sh ${{ matrix.configs }}
- name: save config files
if: always()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.vm }}-${{ matrix.configs }}-config-files
path: |
config.h
config.log
- name: make
run: vmrun make
- name: install moduli
run: vmrun "sudo mkdir -p /usr/local/etc/; sudo cp moduli /usr/local/etc/"
- name: make tests
run: vmrun ./.github/run_test.sh ${{ matrix.configs }}
- name: save regress logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.vm }}-${{ matrix.configs }}-regress-logs
path: regress/*.log
- name: shutdown VM
if: always()
run: vmshutdown