diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8535d3b24b..be2fd7969d 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