From 5ce86f9e1682dd7330efce3337bd38b75bc74d2b Mon Sep 17 00:00:00 2001 From: Ryan Finnie Date: Tue, 23 Jun 2020 16:45:21 -0700 Subject: [PATCH] Add Github CI build workflow Two basic workflow jobs, each cross-compiling arm64 and armhf. --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..de287001a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: ci +on: [push, pull_request] +jobs: + build-arm64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Dependency packages + run: sudo apt-get -y install build-essential cmake gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross + - name: Build + run: ./buildme --aarch64 ${GITHUB_WORKSPACE}/destdir + - name: Build tarball + 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 . + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: userland-ci-${{ github.job }}-${{ github.run_id }}.${{ github.run_number }} + path: artifacts/*.tar.gz + build-armhf: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Dependency packages + run: sudo apt-get -y install build-essential cmake gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-dev-armhf-cross + - name: Build + run: ./buildme ${GITHUB_WORKSPACE}/destdir + - name: Build tarball + 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 . + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: userland-ci-${{ github.job }}-${{ github.run_id }}.${{ github.run_number }} + path: artifacts/*.tar.gz