mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Build and Test the Prog8 compiler
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: build and install recent 64tass
|
|
run: |
|
|
sudo apt-get install -y make build-essential
|
|
git clone --depth=1 https://github.com/irmen/64tass
|
|
cd 64tass
|
|
make -j4
|
|
sudo make install
|
|
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 11
|
|
distribution: adopt
|
|
|
|
- name: Build and test with Gradle
|
|
run: ./gradlew build shadowJar --no-daemon
|
|
|
|
- name: Create compiler shadowJar artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: prog8-compiler-jar-zipped
|
|
path: compiler/build/libs/*-all.jar
|
|
|
|
- uses: MCJack123/ghaction-generate-release-hashes@v4
|
|
if: "github.event_name == 'release'"
|
|
with:
|
|
hash-type: sha256
|
|
file-name: hashes.txt
|
|
- uses: actions/upload-artifact@v3
|
|
if: "github.event_name == 'release'"
|
|
with:
|
|
name: Artifact Hashes
|
|
path: hashes.txt
|