From d946fe791dd35d50d7b9e85fc21742b36f0eec42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sat, 28 Nov 2020 15:47:04 -0300 Subject: [PATCH] .github/workflows: run tests on CI for native builds. Also: - fix "list contents" step by adding a fetch-xtools step. - remove git from masterdir to not interfere with builds (thanks @sgn) --- .github/workflows/build.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8535d3b24b1..be2fd7969db 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,19 +34,20 @@ jobs: PATH: '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin' ARCH: '${{ matrix.config.arch }}' BOOTSTRAP: '${{ matrix.config.bootstrap }}' + TEST: '${{ matrix.config.test }}' HOSTREPO: /hostrepo strategy: fail-fast: false matrix: config: - - { arch: x86_64, bootstrap: x86_64 } - - { arch: i686, bootstrap: i686 } - - { arch: aarch64, bootstrap: x86_64 } - - { arch: armv7l, bootstrap: x86_64 } - - { arch: x86_64-musl, bootstrap: x86_64-musl } - - { arch: armv6l-musl, bootstrap: x86_64-musl } - - { arch: aarch64-musl, bootstrap: x86_64-musl } + - { arch: x86_64, bootstrap: x86_64, test: 1 } + - { arch: i686, bootstrap: i686, test: 1 } + - { arch: aarch64, bootstrap: x86_64, test: 0 } + - { arch: armv7l, bootstrap: x86_64, test: 0 } + - { arch: x86_64-musl, bootstrap: x86_64-musl, test: 1 } + - { arch: armv6l-musl, bootstrap: x86_64-musl, test: 0 } + - { arch: aarch64-musl, bootstrap: x86_64-musl, test: 0 } steps: - name: Prepare container @@ -56,7 +57,7 @@ jobs: # Upgrade again (in case there was a xbps update) xbps-install -yu # Install git - xbps-install -y git xtools + xbps-install -y git - uses: actions/checkout@v1 with: @@ -67,13 +68,16 @@ jobs: - run: common/travis/prepare.sh - run: common/travis/fetch_upstream.sh - run: common/travis/changed_templates.sh + - run: common/travis/fetch-xtools.sh + - name: Remove git after checkout to not interfere with build + run: xbps-remove -yR git - - name: Build packages + - name: Build and check packages run: | ( here="$(pwd)" cd / - "$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" + "$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" "$TEST" ) - name: Show files