openssh/.github/workflows/selfhosted.yml

75 lines
2.0 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.os }}
env:
TARGET_HOST: ${{ matrix.os }}
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-04-16 08:14:25 +00:00
os:
- bbone
- dfly30
- dfly48
- dfly58
- fbsd6
- fbsd7
- fbsd12
- fbsd13
2021-04-20 13:31:29 +00:00
- nbsd8
2021-04-16 23:55:47 +00:00
- obsd51
2021-04-16 08:14:25 +00:00
- sol10
- sol11
2021-04-20 15:08:04 +00:00
- win10
configs:
- default
# Then we include any extra configs we want to test for specific VMs.
include:
- { os: dfly30, configs: without-openssl}
- { os: dfly48, configs: pam }
- { os: dfly58, configs: pam }
2021-02-23 05:05:22 +00:00
- { os: fbsd6, configs: pam }
- { os: fbsd7, configs: pam }
- { os: fbsd12, configs: pam }
2021-04-16 08:14:25 +00:00
- { os: fbsd13, configs: pam }
2021-04-20 13:31:29 +00:00
- { os: nbsd8, configs: pam }
- { os: sol10, configs: pam }
2021-04-23 00:26:35 +00:00
- { os: sol11, configs: pam-krb5 }
- { os: sol11, configs: sol64 }
# - { os: 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: make
run: vmrun make
- name: make tests
run: vmrun ./.github/run_test.sh ${{ matrix.configs }}
- name: save logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.configs }}-logs
2021-02-20 02:06:25 +00:00
path: |
config.h
config.log
2021-02-20 02:06:25 +00:00
regress/*.log
regress/valgrind-out/
- name: shutdown VM
if: always()
run: vmshutdown