From 87bd00cff16fa8614681eed54191f52458be9ae1 Mon Sep 17 00:00:00 2001 From: tiaga <10153548+tiaga@users.noreply.github.com> Date: Fri, 22 Aug 2025 10:10:19 +0100 Subject: [PATCH] ci: add github actions pipeline --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1e79433 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: Build + +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' + pull_request: + paths-ignore: + - 'README.md' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + GO_VERSION: 1.24.2 + +jobs: + libcore: + name: build + runs-on: ubuntu-latest + container: + image: cimg/android:2023.09-ndk + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Setup Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Build + working-directory: scripts + run: bash -x ./build.sh + + - name: Calculate MD5 checksum + run: echo "MD5=$(md5sum libcore.aar | cut -d ' ' -f 1)" >> $GITHUB_ENV + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: libcore-${{ env.MD5 }} + path: libcore.aar