From 56fa240e0d838a83f002ae85cd2bd354760ec221 Mon Sep 17 00:00:00 2001 From: youssef shebl <63800183+youssefshibl@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:05:27 +0200 Subject: [PATCH] add github action pipeline --- .github /workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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 0000000..6e5eb6a --- /dev/null +++ b/.github /workflows/ci.yml @@ -0,0 +1,35 @@ +name: Build Encrypto Deb Package + +on: + push: + branches: [deb] + +jobs: + build: + name: Build Encrypto to Binary + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set Maven + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '21' + cache: 'maven' + + - name: Set up GraalVM + uses: graalvm/setup-graalvm@v1 + with: + java-version: '21' + distribution: 'graalvm' + github-token: ${{ secrets.GITHUB_TOKEN }} + native-image-job-reports: 'true' + + - name: Build encrypto with Maven + run: mvn clean package -Pnative