Merge macos and ubuntu tests.
This commit is contained in:
parent
09f4b84654
commit
4582612e61
|
@ -79,7 +79,7 @@ esac
|
||||||
if [ -z "${LIBCRYPTOFLAGS}" ]; then
|
if [ -z "${LIBCRYPTOFLAGS}" ]; then
|
||||||
# last-match
|
# last-match
|
||||||
for i in /usr/local /usr/local/ssl /usr/local/opt/openssl; do
|
for i in /usr/local /usr/local/ssl /usr/local/opt/openssl; do
|
||||||
if [ -d ${i}/bin/openssl ]; then
|
if [ -x ${i}/bin/openssl ]; then
|
||||||
LIBCRYPTOFLAGS="--with-ssl-dir=${i}"
|
LIBCRYPTOFLAGS="--with-ssl-dir=${i}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -7,12 +7,12 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
ci:
|
||||||
if: github.repository != 'openssh/openssh-portable-selfhosted'
|
if: github.repository != 'openssh/openssh-portable-selfhosted'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-16_04, ubuntu-18_04, ubuntu-20.04]
|
os: [ubuntu-16_04, ubuntu-18_04, ubuntu-20.04, macos-10.15, macos-11.0]
|
||||||
configs: [default, pam]
|
configs: [default, pam]
|
||||||
# Then we include any extra configs we want to test for specific VMs.
|
# Then we include any extra configs we want to test for specific VMs.
|
||||||
include:
|
include:
|
||||||
|
@ -45,28 +45,3 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SUDO: sudo
|
SUDO: sudo
|
||||||
TEST_SSH_UNSAFE_PERMISSIONS: 1
|
TEST_SSH_UNSAFE_PERMISSIONS: 1
|
||||||
|
|
||||||
macos:
|
|
||||||
if: github.repository != 'openssh/openssh-portable-selfhosted'
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ macos-10.15, macos-11.0 ]
|
|
||||||
configs: [default, pam]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: setup CI system
|
|
||||||
run: ./.github/setup_ci.sh ${{ matrix.configs }}
|
|
||||||
- name: autoreconf
|
|
||||||
run: autoreconf
|
|
||||||
- name: configure
|
|
||||||
run: ./configure --with-ssl-dir=/usr/local/opt/openssl ${{ matrix.configs }}
|
|
||||||
- name: make
|
|
||||||
run: make -j2
|
|
||||||
- name: copy moduli
|
|
||||||
run: sudo cp moduli /usr/local/etc/
|
|
||||||
- name: make tests
|
|
||||||
run: ./.github/run_test.sh ${{ matrix.configs }}
|
|
||||||
env:
|
|
||||||
SUDO: sudo
|
|
||||||
TEST_SSH_UNSAFE_PERMISSIONS: 1
|
|
||||||
|
|
Loading…
Reference in New Issue