openssh/.github/workflows/selfhosted.yml

109 lines
3.0 KiB
YAML
Raw Normal View History

name: C/C++ CI self-hosted
on:
push:
paths: [ '**.c', '**.h', '**.m4', '**.sh', '.github/**', 'Makefile.in', 'configure.ac' ]
jobs:
selfhosted:
if: github.repository == 'openssh/openssh-portable-selfhosted'
runs-on: ${{ matrix.os }}
timeout-minutes: 600
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
2021-07-14 01:26:12 +00:00
# default config. "os" corresponds to a label associated with the worker.
matrix:
2021-04-16 08:14:25 +00:00
os:
2022-03-28 06:51:03 +00:00
- aix51
2022-07-15 10:25:27 +00:00
- ARM
2021-07-14 01:26:12 +00:00
- ARM64
2022-02-22 02:08:59 +00:00
- alpine
2022-02-26 03:10:41 +00:00
- debian-i386
2022-04-26 13:30:59 +00:00
- debian-riscv64
2021-04-16 08:14:25 +00:00
- dfly30
- dfly48
- dfly58
2021-06-02 01:17:54 +00:00
- dfly60
2021-04-26 03:35:44 +00:00
- fbsd10
2021-04-16 08:14:25 +00:00
- fbsd12
- fbsd13
# - hurd
2021-05-27 11:13:38 +00:00
- minix3
2021-04-24 12:03:46 +00:00
# - nbsd2
- nbsd3
- nbsd4
2021-04-20 13:31:29 +00:00
- nbsd8
- nbsd9
2021-04-16 23:55:47 +00:00
- obsd51
2021-04-23 04:41:13 +00:00
- obsd67
2021-05-01 10:07:47 +00:00
- obsd69
2021-12-25 05:42:51 +00:00
- obsd70
- obsdsnap
2021-04-23 00:28:28 +00:00
- openindiana
- openwrt-mips
- openwrt-mipsel
# - rocky84
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:
2021-07-14 01:26:50 +00:00
- { os: ARM64, configs: pam }
2022-02-26 03:10:41 +00:00
- { os: debian-i386, configs: pam }
2021-07-14 01:26:50 +00:00
- { os: dfly30, configs: without-openssl}
- { os: dfly48, configs: pam }
- { os: dfly58, configs: pam }
- { os: dfly60, configs: pam }
- { os: fbsd10, configs: pam }
- { os: fbsd12, configs: pam }
- { os: fbsd13, configs: pam }
- { os: nbsd8, configs: pam }
- { os: nbsd9, configs: pam }
- { os: openindiana, configs: pam }
# - { os: rocky84, configs: pam }
- { os: sol10, configs: pam }
- { os: sol11, configs: pam-krb5 }
- { os: sol11, configs: sol64 }
# - { os: sol11, configs: sol64-pam }
- { os: win10, configs: cygwin-release }
steps:
- name: shutdown VM if running
run: vmshutdown
- uses: actions/checkout@v2
- name: autoreconf
run: autoreconf
- name: startup VM
run: vmstartup
- name: configure
run: vmrun ./.github/configure.sh ${{ matrix.configs }}
- name: save config
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.configs }}-config
path: config.h
2021-09-29 03:28:56 +00:00
- name: make clean
run: vmrun make clean
- name: make
run: vmrun make
- name: make tests
run: vmrun ./.github/run_test.sh ${{ matrix.configs }}
timeout-minutes: 600
- 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