Skip to content

Commit dd7b841

Browse files
Merge pull request #8346 from dotty-staging/community-gh-ci
Run CI on self-hosted runners. Add community build to the CI
2 parents 98103a2 + 738d4b9 commit dd7b841

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

.github/workflows/ci.yaml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7-
runs-on: ubuntu-latest
7+
runs-on: self-hosted
88
container: akmetiuk/dotty:2020-02-12
99

1010
steps:
@@ -38,7 +38,7 @@ jobs:
3838
./project/scripts/cmdTests
3939
4040
test_bootstrapped:
41-
runs-on: ubuntu-latest
41+
runs-on: self-hosted
4242
container: akmetiuk/dotty:2020-02-12
4343

4444
steps:
@@ -71,43 +71,43 @@ jobs:
7171
./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test ;configureIDE"
7272
./project/scripts/bootstrapCmdTests
7373
74-
# community_build:
75-
# runs-on: ubuntu-latest
76-
# container: akmetiuk/dotty:2020-02-12
77-
78-
# steps:
79-
# - name: Git Checkout
80-
# uses: actions/checkout@v2
81-
82-
# - name: Cache Ivy
83-
# uses: actions/[email protected]
84-
# with:
85-
# path: /root/.ivy2/cache
86-
# key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }}
87-
# restore-keys: ${{ runner.os }}-ivy-
88-
89-
# - name: Cache SBT
90-
# uses: actions/[email protected]
91-
# with:
92-
# path: /root/.sbt
93-
# key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }}
94-
# restore-keys: ${{ runner.os }}-sbt-
95-
96-
# - name: Cache Coursier and Mill
97-
# uses: actions/[email protected]
98-
# with:
99-
# path: /root/.cache
100-
# key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }}
101-
# restore-keys: ${{ runner.os }}-general-
102-
103-
# - name: Test
104-
# run: |
105-
# git submodule sync
106-
# git submodule update --init --recursive --jobs 7
107-
# ./project/scripts/sbt community-build/test
74+
community_build:
75+
runs-on: self-hosted
76+
container: akmetiuk/dotty:2020-02-12
77+
78+
steps:
79+
- name: Git Checkout
80+
uses: actions/checkout@v2
81+
82+
- name: Cache Ivy
83+
uses: actions/[email protected]
84+
with:
85+
path: /root/.ivy2/cache
86+
key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }}
87+
restore-keys: ${{ runner.os }}-ivy-
88+
89+
- name: Cache SBT
90+
uses: actions/[email protected]
91+
with:
92+
path: /root/.sbt
93+
key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }}
94+
restore-keys: ${{ runner.os }}-sbt-
95+
96+
- name: Cache Coursier and Mill
97+
uses: actions/[email protected]
98+
with:
99+
path: /root/.cache
100+
key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }}
101+
restore-keys: ${{ runner.os }}-general-
102+
103+
- name: Test
104+
run: |
105+
git submodule sync
106+
git submodule update --init --recursive --jobs 7
107+
./project/scripts/sbt community-build/test
108108
109109
test_sbt:
110-
runs-on: ubuntu-latest
110+
runs-on: self-hosted
111111
container: akmetiuk/dotty:2020-02-12
112112
if: github.event_name == 'push' &&
113113
startsWith(github.event.ref, 'refs/tags/')
@@ -141,7 +141,7 @@ jobs:
141141
run: ./project/scripts/sbt sbt-dotty/scripted
142142

143143
test_java11:
144-
runs-on: ubuntu-latest
144+
runs-on: self-hosted
145145
container: akmetiuk/dotty:2020-02-12
146146
if: github.event_name == 'push' &&
147147
startsWith(github.event.ref, 'refs/tags/')

0 commit comments

Comments
 (0)