From 8730c48ed68390af6c3b2d7565e07f0943bc23f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Mon, 2 Nov 2020 18:09:05 -0300 Subject: [PATCH 1/2] .github/workflows: add build.yaml. This commit enables CI on GitHub Actions. Taken from nilium's repository: https://github.com/nilium/ecks-bops-packages/blob/e9bf829752ab82d1170ceb5da60ad656ef372064/.github/workflows/build.yaml Plus a few changes: - only run CI on PRs - don't run CI on draft PRs or when a PR title contains "ci skip" --- .github/workflows/build.yaml | 105 +++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000000..475e3d3b215 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,105 @@ +name: Check PR + +on: pull_request + +jobs: + # Lint changed templates. + xlint: + name: Lint templates + runs-on: ubuntu-18.04 + + env: + PATH: '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin' + XLINT: '1' + LICENSE_LIST: common/travis/license.lst + + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 200 + - name: Fetch upstream + run: common/travis/fetch_upstream.sh + - name: Get changed templates + run: common/travis/changed_templates.sh + - name: Fetch xtools + run: common/travis/fetch-xtools.sh + - name: Run xlint + run: common/travis/xlint.sh + + # Build changed packages. + build: + name: Build packages + runs-on: ubuntu-18.04 + if: "!github.event.pull_request.draft && !contains(github.event.pull_request.title, 'ci skip')" + + container: + image: 'voidlinux/masterdir-${{ matrix.config.bootstrap }}:2019102301' + env: + PATH: '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin' + ARCH: '${{ matrix.config.arch }}' + BOOTSTRAP: '${{ matrix.config.bootstrap }}' + 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 } + + steps: + - name: Prepare container + run: | + # Sync and upgrade once (catches xbps updates) + xbps-install -Syu + # Upgrade again (in case of an xbps update) + xbps-install -yu + # Install git + xbps-install -y git + + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 200 + + - name: Create hostrepo + run: ln -s "$(pwd)" /hostrepo + + - name: Set mirrors + run: common/travis/set_mirror.sh + + - name: Configure xbps-src + run: common/travis/prepare.sh + + - name: Fetch upstream + run: common/travis/fetch_upstream.sh + + - name: Get changed templates + run: common/travis/changed_templates.sh + + - name: Build packages + run: | + ( + here="$(pwd)" + cd / + "$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" + ) + + - name: Show files + run: | + ( + here="$(pwd)" + cd / + "$here/common/travis/show_files.sh" "$BOOTSTRAP" "$ARCH" + ) + + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" From 612d86f170c5985f70d88d871a26350c25a4fdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 5 Nov 2020 14:22:08 -0300 Subject: [PATCH 2/2] test commit 2 --- srcpkgs/linux5.8/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/linux5.8/template b/srcpkgs/linux5.8/template index 31b22e6e7d9..d2b4132ee97 100644 --- a/srcpkgs/linux5.8/template +++ b/srcpkgs/linux5.8/template @@ -1,7 +1,7 @@ # Template file for 'linux5.8' pkgname=linux5.8 version=5.8.18 -revision=1 +revision=2 wrksrc="linux-${version}" short_desc="Linux kernel and modules (${version%.*} series)" maintainer="Leah Neukirchen "