Skip to content

license and fixes

license and fixes #882

Workflow file for this run

# GitHub Actions workflow to automatically build and test Embr.
name: 'Build'
on:
push:
branches-ignore: ['main']
pull_request:
branches: ['main']
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
JAVA_VERSION: 21
NODE_VERSION: 20
permissions:
issues: write
contents: write
pull-requests: write
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Set up Java ${{ env.JAVA_VERSION }}'
uses: actions/setup-java@v4
with:
java-version: '${{ env.JAVA_VERSION }}'
distribution: 'zulu'
- name: 'Setup Gradle'
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.event_name == 'pull_request' }}
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: 'Make gradlew executable'
run: chmod +x ./gradlew
- name: 'Validate Gradle wrapper'
uses: gradle/actions/wrapper-validation@v4
- name: 'Set up Node.js'
uses: actions/setup-node@v4
with:
node-version: '${{ env.NODE_VERSION }}'
- name: 'Initialize Node.js'
run: yarn install
- name: 'Load Organization gradle.properties'
env:
props: ${{ secrets.GRADLE_IGNITION_MODULE_SIGNING_PROPS }}
run: |
mkdir -p ~/.gradle/
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
echo "${props}" > ~/.gradle/gradle.properties
- name: 'Load Organization Signing Cert'
run: |
mkdir ./secrets
echo -n "$cert_base64" | base64 --decode > ./secrets/cert.p7b
env:
cert_base64: ${{ secrets.IGNITION_MODULE_CERT_BASE64 }}
- name: 'Load Organization Keystore'
run: |
echo -n "$keystore_base64" | base64 --decode > ./secrets/keystore.jks
env:
keystore_base64: ${{ secrets.IGNITION_MODULE_KEYSTORE_BASE64 }}
- name: 'Build'
run: ./gradlew --scan build