Github messages for voidlinux
 help / color / mirror / Atom feed
From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Enable CI on GitHub Actions
Date: Tue, 03 Nov 2020 21:28:16 +0100	[thread overview]
Message-ID: <20201103202816.YDyNmDwPCbPn2Tc7j6kJDA7hYpd-CO9ZxRjY87ttzko@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26095@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages ci
https://github.com/void-linux/void-packages/pull/26095

Enable CI on GitHub Actions


A patch file from https://github.com/void-linux/void-packages/pull/26095.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ci-26095.patch --]
[-- Type: text/x-diff, Size: 3674 bytes --]

From 4f050446b6c859bcd7787a8881c36a482a5f5005 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Mon, 2 Nov 2020 18:09:05 -0300
Subject: [PATCH] .github/workflows: add build.yaml. [ci skip]

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 commit message contains "[ci skip]"

[ci skip]
---
 .github/workflows/build.yaml | 98 ++++++++++++++++++++++++++++++++++++
 1 file changed, 98 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..bfc615cc4b1
--- /dev/null
+++ b/.github/workflows/build.yaml
@@ -0,0 +1,98 @@
+name: Build Packages
+
+on: pull_request
+
+jobs:
+  # Lint changed templates.
+  xlint:
+    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:
+    runs-on: ubuntu-18.04
+    if: "github.event.pull_request.draft == false && !contains(github.event.head_commit.message, '[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"
+          )

  parent reply	other threads:[~2020-11-03 20:28 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-02 21:10 [PR PATCH] tmp ericonr
2020-11-02 21:13 ` [PR PATCH] [Updated] tmp ericonr
2020-11-02 21:19 ` ericonr
2020-11-03 14:05 ` ericonr
2020-11-03 19:37 ` [PR PATCH] [Updated] Enable CI on GitHub Actions ericonr
2020-11-03 19:43 ` ericonr
2020-11-03 19:53 ` ericonr
2020-11-03 20:28 ` ericonr [this message]
2020-11-03 20:29 ` ericonr
2020-11-03 20:31 ` ericonr
2020-11-03 20:32 ` ericonr
2020-11-03 20:34 ` ericonr
2020-11-03 20:41 ` ericonr
2020-11-03 20:42 ` [PR PATCH] [Updated] Enable CI on GitHub Actions [ci skip] ericonr
2020-11-03 20:46 ` ericonr
2020-11-03 20:53 ` ericonr
2020-11-03 20:56 ` ericonr
2020-11-03 20:58 ` ericonr
2020-11-05 16:27 ` Anachron
2020-11-05 17:22 ` [PR PATCH] [Updated] " ericonr
2020-11-05 17:24 ` [PR PATCH] [Updated] Enable CI on GitHub Actions ericonr
2020-11-05 17:41 ` ericonr
2020-11-05 19:27 ` Anachron
2020-11-05 21:23 ` [PR PATCH] [Updated] " ericonr
2020-11-05 21:24 ` ericonr
2020-11-06  0:41 ` [PR REVIEW] " sgn
2020-11-06  0:41 ` sgn
2020-11-06  0:44 ` sgn
2020-11-06  1:17 ` ericonr
2020-11-07 23:02 ` ericonr
2020-11-07 23:02 ` ericonr
2020-11-07 23:05 ` [PR PATCH] [Updated] " ericonr
2020-11-07 23:11 ` ericonr
2020-11-07 23:15 ` ericonr
2020-11-08  1:45 ` ericonr
2020-11-08  1:59 ` [PR PATCH] [Updated] " ericonr
2020-11-08  2:01 ` ericonr
2020-11-08  2:09 ` [PR PATCH] [Updated] " ericonr
2020-11-08  2:20 ` ericonr
2020-11-08  2:21 ` ericonr
2020-11-13 22:33 ` [PR PATCH] [Merged]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201103202816.YDyNmDwPCbPn2Tc7j6kJDA7hYpd-CO9ZxRjY87ttzko@z \
    --to=ericonr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).