ruki 4 лет назад
Родитель
Сommit
a88288b594
2 измененных файлов с 33 добавлено и 0 удалено
  1. 32 0
      .github/workflows/archlinux.yml
  2. 1 0
      packages/l/linux-tools/modules/bpftool.lua

+ 32 - 0
.github/workflows/archlinux.yml

@@ -0,0 +1,32 @@
+name: Archlinux
+
+on:
+  pull_request:
+  push:
+    branches:
+      - dev
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [ubuntu-latest]
+        kind: [static, shared]
+
+    container: archlinux:latest
+    runs-on: ${{ matrix.os }}
+
+    steps:
+      - name: Installation
+        run: |
+          pacman -Sy --noconfirm --needed git base-devel perl make unzip
+      - uses: actions/checkout@v1
+      - uses: xmake-io/github-action-setup-xmake@v1
+        with:
+          xmake-version: branch@dev
+
+      - name: Tests
+        env:
+          XMAKE_ROOT: y
+        run: |
+          xmake l ./scripts/test.lua -D -k ${{ matrix.kind }}

+ 1 - 0
packages/l/linux-tools/modules/bpftool.lua

@@ -1,5 +1,6 @@
 function load(package)
     package:add("deps", "libcap", "libelf", "zlib", {host = true})
+    package:add("deps", "python 3.x", {kind = "binary"})
     package:addenv("PATH", "sbin")
 end