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

42 lines
1.0 KiB
YAML
Raw Normal View History

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
2024-02-20 00:07:39 +00:00
uses: actions/checkout@v4
2023-01-21 12:39:30 +00:00
2024-03-21 20:40:18 +00:00
- 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
2023-01-21 13:02:08 +00:00
2023-01-21 14:24:07 +00:00
- name: Set up JDK 11
2024-02-20 00:07:39 +00:00
uses: actions/setup-java@v4
2023-01-21 12:39:30 +00:00
with:
java-version: 11
2024-03-21 20:40:18 +00:00
distribution: temurin
2023-01-21 12:39:30 +00:00
- name: Build and test with Gradle
2024-03-21 20:30:34 +00:00
run: |
./gradlew build shadowJar --no-daemon
sha256sum -b compiler/build/libs/*-all.jar > compiler/build/libs/hash.txt
2024-02-09 23:38:32 +00:00
2023-01-21 13:25:17 +00:00
- name: Create compiler shadowJar artifact
2024-02-20 00:07:39 +00:00
uses: actions/upload-artifact@v4
2023-01-21 13:19:01 +00:00
with:
2023-01-21 13:47:32 +00:00
name: prog8-compiler-jar-zipped
2024-03-21 20:30:34 +00:00
path: |
compiler/build/libs/*-all.jar
compiler/build/libs/hash.txt