Skip to content

Commit

Permalink
add github actions for experimental artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
liskar-dev committed Oct 26, 2024
1 parent 9f5ae6f commit bc28664
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Upload JAR

on:
push:
branches:
- master

jobs:
build-and-upload:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: src

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '23'

- name: Download jspecify
run: curl --create-dirs -o ./libs/jspecify-1.0.0.jar https://repo1.maven.org/maven2/org/jspecify/jspecify/1.0.0/jspecify-1.0.0.jar

- name: Compile Java Files
run: |
mkdir -p out
javac -cp libs/* -d out $(find src -name "*.java")
- name: Package JAR
run: |
mkdir -p dist
jar -cvf dist/wgpu-panama.jar -C out .
- name: Upload JAR Artifact
uses: actions/upload-artifact@v4
with:
name: jar
path: dist/wgpu-panama.jar
retention-days: 14

0 comments on commit bc28664

Please sign in to comment.