public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/crossdev:master commit in: .github/workflows/
Date: Tue, 12 Nov 2024 08:46:30 +0000 (UTC)	[thread overview]
Message-ID: <1731401171.c9aaa3e484e39debe599b82fdc8451833bb8f19e.sam@gentoo> (raw)

commit:     c9aaa3e484e39debe599b82fdc8451833bb8f19e
Author:     Michal Rostecki <vadorovsky <AT> protonmail <DOT> com>
AuthorDate: Tue Nov 12 00:39:35 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 08:46:11 2024 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=c9aaa3e4

ci: Test crossdev in GitHub Actions

Add a workflow which sets up and tests crossdev for the given list of
targets.

Signed-off-by: Michal Rostecki <vadorovsky <AT> protonmail.com>
Closes: https://github.com/gentoo/crossdev/pull/25
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/crossdev.yml | 47 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/.github/workflows/crossdev.yml b/.github/workflows/crossdev.yml
new file mode 100644
index 0000000..5af15bb
--- /dev/null
+++ b/.github/workflows/crossdev.yml
@@ -0,0 +1,47 @@
+name: CI
+
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+  schedule:
+    - cron: 00 4 * * *
+
+jobs:
+  crossdev:
+    strategy:
+      matrix:
+        target:
+          - aarch64-unknown-linux-gnu
+          - aarch64-unknown-linux-musl
+        stage3:
+          - latest # `openrc` (glibc+GCC) is tagged as `latest`
+          - musl
+    name: crossdev target=${{ matrix.target }} stage3=${{ matrix.stage3 }}
+    runs-on: ubuntu-latest
+    container: docker.io/gentoo/stage3:${{ matrix.stage3 }}
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Install dependencies
+        run: |
+          emerge --sync --quiet
+          emerge \
+            app-eselect/eselect-repository \
+            sys-apps/config-site
+
+      - name: Install crossdev
+        run: make install
+
+      - name: Create cross environment
+        run: |
+          eselect repository create crossdev
+          crossdev ${{ matrix.args }} --target ${{ matrix.target }}
+
+      # zstd and its dependencies need both C and C++ toolchain. If any of them
+      # is broken, the installation will fail.
+      - name: Sanity check
+        run: ${{ matrix.target }}-emerge app-arch/zstd


             reply	other threads:[~2024-11-12  8:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12  8:46 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-12 15:24 [gentoo-commits] proj/crossdev:master commit in: .github/workflows/ Sam James
2025-01-03 11:15 Sam James
2025-01-03 11:15 Sam James
2025-01-03 11:15 Sam James
2025-01-03 11:15 Sam James
2025-01-03 11:15 Sam James
2025-01-03 11:15 Sam James
2025-01-03 11:15 Sam James
2025-01-03 11:15 Sam James
2025-01-04 15:19 Sam James
2025-01-04 15:19 Sam James
2025-01-04 15:19 Sam James
2025-01-04 15:19 Sam James
2025-01-04 15:19 Sam James
2025-01-04 15:19 Sam James
2025-01-04 15:19 Sam James

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=1731401171.c9aaa3e484e39debe599b82fdc8451833bb8f19e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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