Update actions/upload-artifact action to v3 #2
Workflow file for this run
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: GraalVM Native Image builds | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: HelloWorld on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/[email protected] | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '21' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
- name: Build and run HelloWorld.java | |
run: | | |
echo 'public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }' > HelloWorld.java | |
javac HelloWorld.java | |
native-image HelloWorld | |
./helloworld | |
- name: Upload binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: helloworld-${{ matrix.os }} | |
path: helloworld* |