prog8/.github/workflows/all-ci.yml

39 lines
861 B
YAML
Raw Normal View History

2023-01-21 13:39:30 +01: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-01-21 14:02:08 +01:00
- name: Install 64tass
run: sudo apt-get update -y && sudo apt-get install -y 64tass
2023-01-21 13:39:30 +01:00
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 11
2023-01-21 13:47:09 +01:00
distribution: adopt
2023-01-21 13:39:30 +01:00
- name: Build and test with Gradle
run: ./gradlew build
2023-01-21 14:19:01 +01:00
env:
2023-01-21 14:25:17 +01:00
GRADLE_OPTS: -Dorg.gradle.daemon=false
2023-01-21 13:39:30 +01:00
2023-01-21 14:19:01 +01:00
- name: Create shadowJar
run: ./gradlew shadowJar
2023-01-21 14:25:17 +01:00
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
2023-01-21 14:19:01 +01:00
2023-01-21 14:25:17 +01:00
- name: Create compiler shadowJar artifact
2023-01-21 14:19:01 +01:00
uses: actions/upload-artifact@v3
with:
name: shadowJar
2023-01-21 14:25:17 +01:00
path: compiler/build/libs/*-all.jar