-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from ice-phoenix/marat.akhin/github-workflows
WIP: Testing GitHub Actions
- Loading branch information
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: 'Build Kotlin spec in its Docker container' | ||
runs: | ||
using: 'docker' | ||
image: './docker/Dockerfile' | ||
entrypoint: '/build-spec.sh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: 'Build Kotlin spec on PRs (version 2)' | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build-spec: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v3 | ||
- name: 'Build Kotlin spec in its Docker container' | ||
uses: ./.github/actions/build-spec-in-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build Kotlin spec on PRs | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build-spec: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Setup Java 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
cache: 'gradle' | ||
- name: Setup pandoc | ||
env: | ||
PANDOC_VERSION: 2.14.2 | ||
PANDOC_DEB: pandoc-2.14.2-1-amd64.deb | ||
run: | | ||
curl -sLO https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/$PANDOC_DEB | ||
sudo dpkg -i $PANDOC_DEB | ||
rm $PANDOC_DEB | ||
- name: Setup Kotlin spec dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y gpp | ||
sudo apt-get install -y librsvg2-bin | ||
sudo apt-get install -y npm | ||
curl -sL https://deb.nodesource.com/setup_18.x | bash - | ||
sudo apt-get install -y nodejs | ||
sudo apt-get install -y --no-install-recommends texlive-latex-extra | ||
sudo apt-get install -y --no-install-recommends texlive-fonts-extra | ||
sudo apt-get install -y --no-install-recommends texlive-bibtex-extra | ||
sudo apt-get install -y --no-install-recommends texlive-science | ||
sudo apt-get install -y --no-install-recommends fontconfig | ||
sudo apt-get install -y --no-install-recommends lmodern | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Build Kotlin spec | ||
run: | | ||
./gradlew buildPdf buildWeb | ||
- name: Smoke test Kotlin grammar | ||
run: | | ||
./gradlew :grammar:jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
cd /github/workspace | ||
|
||
./gradlew buildWeb buildPdf | ||
|
||
./gradlew :grammar:jar |