.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)
This commit is contained in:
parent
b8044ce629
commit
d946fe791d
1 changed files with 14 additions and 10 deletions
24
.github/workflows/build.yaml
vendored
24
.github/workflows/build.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue