Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 5ce86f9

Browse files
committed
Add Github CI build workflow
Two basic workflow jobs, each cross-compiling arm64 and armhf.
1 parent f97b1af commit 5ce86f9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci
2+
on: [push, pull_request]
3+
jobs:
4+
build-arm64:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Dependency packages
9+
run: sudo apt-get -y install build-essential cmake gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross
10+
- name: Build
11+
run: ./buildme --aarch64 ${GITHUB_WORKSPACE}/destdir
12+
- name: Build tarball
13+
run: mkdir -p ${GITHUB_WORKSPACE}/artifacts && tar zcvf ${GITHUB_WORKSPACE}/artifacts/${{ github.job }}-${{ github.run_id }}.${{ github.run_number }}.tar.gz -C ${GITHUB_WORKSPACE}/destdir .
14+
- name: Upload artifacts
15+
uses: actions/upload-artifact@v2
16+
with:
17+
name: userland-ci-${{ github.job }}-${{ github.run_id }}.${{ github.run_number }}
18+
path: artifacts/*.tar.gz
19+
build-armhf:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Dependency packages
24+
run: sudo apt-get -y install build-essential cmake gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-dev-armhf-cross
25+
- name: Build
26+
run: ./buildme ${GITHUB_WORKSPACE}/destdir
27+
- name: Build tarball
28+
run: mkdir -p ${GITHUB_WORKSPACE}/artifacts && tar zcvf ${GITHUB_WORKSPACE}/artifacts/${{ github.job }}-${{ github.run_id }}.${{ github.run_number }}.tar.gz -C ${GITHUB_WORKSPACE}/destdir .
29+
- name: Upload artifacts
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: userland-ci-${{ github.job }}-${{ github.run_id }}.${{ github.run_number }}
33+
path: artifacts/*.tar.gz

0 commit comments

Comments
 (0)