aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorÉrico Rolim <erico.erc@gmail.com>2020-11-28 18:47:04 +0000
committerÉrico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>2020-12-14 03:18:04 +0000
commitd946fe791dd35d50d7b9e85fc21742b36f0eec42 (patch)
tree306cbdfd28aba5d9ebe9207d06210cfa602946aa /.github/workflows
parentb8044ce629d3d209d9c1f56fe26a1f16ebdacc84 (diff)
downloadvoid-packages-d946fe791dd35d50d7b9e85fc21742b36f0eec42.tar
void-packages-d946fe791dd35d50d7b9e85fc21742b36f0eec42.tar.gz
void-packages-d946fe791dd35d50d7b9e85fc21742b36f0eec42.tar.bz2
void-packages-d946fe791dd35d50d7b9e85fc21742b36f0eec42.tar.lz
void-packages-d946fe791dd35d50d7b9e85fc21742b36f0eec42.tar.xz
void-packages-d946fe791dd35d50d7b9e85fc21742b36f0eec42.tar.zst
void-packages-d946fe791dd35d50d7b9e85fc21742b36f0eec42.zip
.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)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yaml24
1 files 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