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 26, 2023
1 parent 10365f9 commit 39d8691
Showing 1 changed file with 52 additions and 0 deletions.
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

0 comments on commit 39d8691

Please sign in to comment.