Skip to content

Commit 641481f

Browse files
committed
WIP: Fix errors in GitHub Actions
1 parent 1fa76b8 commit 641481f

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Build Kotlin spec in its Docker container'
22
runs:
33
using: 'docker'
4-
image: './docker/Dockerfile'
4+
image: '../../../docker/Dockerfile'
55
entrypoint: '/build-spec.sh'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Upload Kotlin spec artifacts'
2+
runs:
3+
using: 'composite'
4+
steps:
5+
- name: 'Upload Kotlin spec PDF artifacts'
6+
uses: actions/upload-artifact@v3
7+
with:
8+
name: kotlin-spec-pdf
9+
path: |
10+
build/spec/pdf/
11+
- name: 'Upload Kotlin spec HTML artifacts'
12+
uses: actions/upload-artifact@v3
13+
with:
14+
name: kotlin-spec-html
15+
path: |
16+
build/spec/html/

.github/workflows/build-spec-on-pr-2.yml renamed to .github/workflows/build-spec-on-pr-in-docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Build Kotlin spec on PRs (version 2)'
1+
name: 'Build Kotlin spec on PRs (Docker version)'
22

33
on: [pull_request]
44

@@ -10,3 +10,5 @@ jobs:
1010
uses: actions/checkout@v3
1111
- name: 'Build Kotlin spec in its Docker container'
1212
uses: ./.github/actions/build-spec-in-docker
13+
- name: 'Upload Kotlin spec artifacts'
14+
uses: ./.github/actions/upload-spec-artifacts

.github/workflows/build-spec-on-pr.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
build-spec:
77
runs-on: ubuntu-20.04
88
steps:
9+
- name: Checkout repo
10+
uses: actions/checkout@v3
911
- name: Setup Java 11
1012
uses: actions/setup-java@v3
1113
with:
@@ -26,19 +28,19 @@ jobs:
2628
sudo apt-get install -y gpp
2729
sudo apt-get install -y librsvg2-bin
2830
sudo apt-get install -y npm
29-
curl -sL https://deb.nodesource.com/setup_18.x | bash -
31+
curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -
3032
sudo apt-get install -y nodejs
3133
sudo apt-get install -y --no-install-recommends texlive-latex-extra
3234
sudo apt-get install -y --no-install-recommends texlive-fonts-extra
3335
sudo apt-get install -y --no-install-recommends texlive-bibtex-extra
3436
sudo apt-get install -y --no-install-recommends texlive-science
3537
sudo apt-get install -y --no-install-recommends fontconfig
3638
sudo apt-get install -y --no-install-recommends lmodern
37-
- name: Checkout repo
38-
uses: actions/checkout@v3
3939
- name: Build Kotlin spec
4040
run: |
4141
./gradlew buildPdf buildWeb
4242
- name: Smoke test Kotlin grammar
4343
run: |
4444
./gradlew :grammar:jar
45+
- name: 'Upload Kotlin spec artifacts'
46+
uses: ./.github/actions/upload-spec-artifacts

docker/build-spec.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)