Merge pull request #1 from youssefshibl/main #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: Upload binary as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: encrypto-binary | |
path: target/native/encrypto |