2023-01-21 12:39:30 +00:00
|
|
|
name: Build and Test the Prog8 compiler
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2023-05-29 21:14:22 +00:00
|
|
|
- name: add debian testing repository and install 64tass
|
|
|
|
uses: myci-actions/add-deb-repo@11
|
|
|
|
with:
|
|
|
|
repo: ftp://ftp.debian.org/debian/ testing main
|
|
|
|
repo-name: debian testing
|
|
|
|
install: 64tass
|
2023-01-21 13:02:08 +00:00
|
|
|
|
2023-01-21 14:24:07 +00:00
|
|
|
- name: Set up JDK 11
|
2023-01-21 12:39:30 +00:00
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: 11
|
2023-01-21 12:47:09 +00:00
|
|
|
distribution: adopt
|
2023-01-21 12:39:30 +00:00
|
|
|
|
|
|
|
- name: Build and test with Gradle
|
2023-01-21 14:24:07 +00:00
|
|
|
run: ./gradlew build shadowJar --no-daemon
|
2023-01-21 13:19:01 +00:00
|
|
|
|
2023-01-21 13:25:17 +00:00
|
|
|
- name: Create compiler shadowJar artifact
|
2023-01-21 13:19:01 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-01-21 13:47:32 +00:00
|
|
|
name: prog8-compiler-jar-zipped
|
2023-01-21 13:25:17 +00:00
|
|
|
path: compiler/build/libs/*-all.jar
|