Skip to content

Commit

Permalink
Add CI based on Github Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Sep 27, 2023
1 parent 10365f9 commit 38034ea
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Build on Linux x86_64
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y file
- name: Build
run: |
make -j all
file wtdbg2 | grep x86-64
build-aarch64:
name: Build on Linux aarch64
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu20.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/wtdbg2"
install: |
apt-get update -q -y
apt-get install -q -y make gcc file zlib1g-dev
run: |
cd /wtdbg2
make -j all
file wtdbg2 | grep aarch64
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endif
ARCH := $(shell uname -m)
ifeq ($(ARCH), x86_64)
ARCH_CFLAGS=-mpopcnt -msse4.2
else ($(ARCH), aarch64)
else ifeq ($(ARCH), aarch64)
ARCH_CFLAGS=
endif

Expand Down

0 comments on commit 38034ea

Please sign in to comment.