summaryrefslogtreecommitdiffstats
path: root/.github/workflows/linux.yml
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-03-26 21:32:55 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-03-28 10:38:50 -0400
commitf9c18e80595fae26f1d45dab5427c7122d15cb35 (patch)
tree65aab4bb54b4fd228dcbd2fd2a773ad612621417 /.github/workflows/linux.yml
parentd36ece2ca7498b7ba5485d5010439b57f006c9c8 (diff)
downloadbfs-f9c18e80595fae26f1d45dab5427c7122d15cb35.tar.xz
ci: Switch to GitHub Actions
Diffstat (limited to '.github/workflows/linux.yml')
-rw-r--r--.github/workflows/linux.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000..67943f4
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,35 @@
+name: Linux
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: |
+ sudo dpkg --add-architecture i386
+ sudo apt-get update -y
+ sudo apt-get install -y \
+ gcc-multilib \
+ acl \
+ libacl1-dev \
+ libacl1:i386 \
+ attr \
+ libattr1-dev \
+ libattr1:i386 \
+ libcap2-bin \
+ libcap-dev \
+ libcap2:i386
+ # Ubuntu doesn't let you install the -dev packages for both amd64 and
+ # i386 at once, so we make our own symlinks to fix -m32 -lacl -lattr -lcap
+ sudo ln -s libacl.so.1 /lib/i386-linux-gnu/libacl.so
+ sudo ln -s libattr.so.1 /lib/i386-linux-gnu/libattr.so
+ sudo ln -s libcap.so.2 /lib/i386-linux-gnu/libcap.so
+
+ - name: Run tests
+ run: |
+ make -j$(nproc) distcheck