Skip to content

Commit

Permalink
WIP: Fix errors in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-phoenix committed Aug 1, 2022
1 parent 1fa76b8 commit 641481f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-spec-in-docker/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Build Kotlin spec in its Docker container'
runs:
using: 'docker'
image: './docker/Dockerfile'
image: '../../../docker/Dockerfile'
entrypoint: '/build-spec.sh'
16 changes: 16 additions & 0 deletions .github/actions/upload-spec-artifacts/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Upload Kotlin spec artifacts'
runs:
using: 'composite'
steps:
- name: 'Upload Kotlin spec PDF artifacts'
uses: actions/upload-artifact@v3
with:
name: kotlin-spec-pdf
path: |
build/spec/pdf/
- name: 'Upload Kotlin spec HTML artifacts'
uses: actions/upload-artifact@v3
with:
name: kotlin-spec-html
path: |
build/spec/html/
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Build Kotlin spec on PRs (version 2)'
name: 'Build Kotlin spec on PRs (Docker version)'

on: [pull_request]

Expand All @@ -10,3 +10,5 @@ jobs:
uses: actions/checkout@v3
- name: 'Build Kotlin spec in its Docker container'
uses: ./.github/actions/build-spec-in-docker
- name: 'Upload Kotlin spec artifacts'
uses: ./.github/actions/upload-spec-artifacts
8 changes: 5 additions & 3 deletions .github/workflows/build-spec-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
build-spec:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Java 11
uses: actions/setup-java@v3
with:
Expand All @@ -26,19 +28,19 @@ jobs:
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 -
curl -sL https://deb.nodesource.com/setup_18.x | sudo 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
- name: 'Upload Kotlin spec artifacts'
uses: ./.github/actions/upload-spec-artifacts
Empty file modified docker/build-spec.sh
100644 → 100755
Empty file.

0 comments on commit 641481f

Please sign in to comment.