Skip to content

Commit

Permalink
#361: fixed nightly build (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndemirca authored Jun 17, 2024
1 parent 99a3d9b commit f7eebdc
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: graalvm/setup-graalvm@v1
with:
java-version: '21.0.2'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'

- name: Build native images with nativ maven plugin and extract in tar.gz
shell: bash
run: |
mvn -B -ntp -Pnative -DskipTests=true package
mvn -B -ntp -Pnative -DskipTests=true package -pl cli
- uses: actions/upload-artifact@v3
with:
name: natives
Expand Down Expand Up @@ -72,17 +69,3 @@ jobs:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: mvn --settings .mvn/settings.xml -DskipTests=true -Darchetype.test.skip=true -Dmaven.install.skip=true -Dgpg.skip=true -Dstyle.color=always -B -ntp -P deploy deploy

cancel:
name: Cancel this workflow
runs-on: ubuntu-latest
needs: verify_commit
if: ${{ needs.verify_commit.outputs.RUN_BUILD == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
RUN_ID: ${{ github.run_id }}
steps:
- run: |
curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/$OWNER/$REPO/actions/runs/$RUN_ID/cancel"

0 comments on commit f7eebdc

Please sign in to comment.