Skip to content

Commit bb35919

Browse files
authored
Enable github action runners (#1537)
* Use github action runners (instead of self-hosted)
1 parent df4c3f6 commit bb35919

File tree

15 files changed

+36
-32
lines changed

15 files changed

+36
-32
lines changed

.github/actions/build-job/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ runs:
4747
- name: Build Docker Image
4848
shell: bash
4949
run: |
50+
if pgrep ssh-agent; then pkill ssh-agent; fi
51+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null 2>&1
5052
CFG_ENABLES=
5153
if [ "${{ inputs.build-flavor }}" != "" ] ; then
5254
CFG_ENABLES="$CFG_ENABLES --cfg-enables ${{ inputs.build-flavor}}"

.github/actions/setup-job/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ runs:
3434
rm -rf /opt/ghc
3535
echo "After Haskell Cleanup ~0.5G"
3636
df -h
37-
rm -rf /usr/local/lib/android
37+
sudo rm -rf /usr/local/lib/android
3838
echo "After Android Cleanup ~15G"
3939
df -h

.github/workflows/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Each of our jobs is built on a standard Ubuntu:20.04 system.
125125
To keep things simple, any specialization of jobs for different environments is done within the docker builds.
126126

127127
```YAML
128-
runs-on: self-hosted
128+
runs-on: ubuntu-20.04
129129
```
130130

131131
### Environment Variables
@@ -299,7 +299,7 @@ This is required to pull the latest version from GitHub's image store:
299299
```YAML
300300
- name: Pull Latest Dev-Core Image
301301
run: |
302-
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
302+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null 2>&1
303303
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
304304
docker pull ghcr.io/gaia-platform/dev-base:latest
305305
```

.github/workflows/core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
jobs:
1111
Core:
12-
runs-on: self-hosted
12+
runs-on: ubuntu-20.04
1313
env:
1414
GAIA_REPO: ${{ github.workspace }}
1515
steps:
@@ -29,7 +29,7 @@ jobs:
2929
build-type: Release
3030

3131
Debug_Core:
32-
runs-on: self-hosted
32+
runs-on: ubuntu-20.04
3333
env:
3434
GAIA_REPO: ${{ github.workspace }}
3535
steps:

.github/workflows/cores-and-sdks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
jobs:
1111
Core:
12-
runs-on: self-hosted
12+
runs-on: ubuntu-20.04
1313
env:
1414
GAIA_REPO: ${{ github.workspace }}
1515
steps:
@@ -29,7 +29,7 @@ jobs:
2929
build-type: Release
3030

3131
SDK:
32-
runs-on: self-hosted
32+
runs-on: ubuntu-20.04
3333
env:
3434
GAIA_REPO: ${{ github.workspace }}
3535
steps:
@@ -49,7 +49,7 @@ jobs:
4949
build-type: Release
5050

5151
Debug_Core:
52-
runs-on: self-hosted
52+
runs-on: ubuntu-20.04
5353
env:
5454
GAIA_REPO: ${{ github.workspace }}
5555
steps:
@@ -69,7 +69,7 @@ jobs:
6969
build-type: Debug
7070

7171
Debug_SDK:
72-
runs-on: self-hosted
72+
runs-on: ubuntu-20.04
7373
env:
7474
GAIA_REPO: ${{ github.workspace }}
7575
steps:

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
jobs:
1111

1212
Documentation:
13-
runs-on: self-hosted
13+
runs-on: ubuntu-20.04
1414
env:
1515
GAIA_REPO: ${{ github.workspace }}
1616
steps:

.github/workflows/integration-only.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
Integration_Tests:
13-
runs-on: self-hosted
13+
runs-on: ubuntu-20.04
1414
timeout-minutes: 7
1515
env:
1616
GAIA_REPO: ${{ github.workspace }}

.github/workflows/llvm-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
jobs:
1111

1212
LLVM_Tests:
13-
runs-on: self-hosted
13+
runs-on: ubuntu-20.04
1414
env:
1515
GAIA_REPO: ${{ github.workspace }}
1616
steps:

.github/workflows/main.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
jobs:
1717

1818
Lint:
19-
runs-on: self-hosted
19+
runs-on: ubuntu-20.04
2020
env:
2121
GAIA_REPO: ${{ github.workspace }}
2222
steps:
@@ -31,7 +31,7 @@ jobs:
3131
Core:
3232
needs:
3333
- Lint
34-
runs-on: self-hosted
34+
runs-on: ubuntu-20.04
3535
env:
3636
GAIA_REPO: ${{ github.workspace }}
3737
steps:
@@ -55,7 +55,7 @@ jobs:
5555
needs:
5656
- Lint
5757
if: github.event_name != 'pull_request'
58-
runs-on: self-hosted
58+
runs-on: ubuntu-20.04
5959
env:
6060
GAIA_REPO: ${{ github.workspace }}
6161
steps:
@@ -78,7 +78,7 @@ jobs:
7878
Debug_Core:
7979
needs:
8080
- Core
81-
runs-on: self-hosted
81+
runs-on: ubuntu-20.04
8282
if: ${{ false }}
8383
env:
8484
GAIA_REPO: ${{ github.workspace }}
@@ -103,7 +103,7 @@ jobs:
103103
needs:
104104
- Core
105105
if: github.event_name != 'pull_request'
106-
runs-on: self-hosted
106+
runs-on: ubuntu-20.04
107107
env:
108108
GAIA_REPO: ${{ github.workspace }}
109109
steps:
@@ -127,7 +127,7 @@ jobs:
127127
- Lint
128128
if: ${{ false }}
129129
timeout-minutes: 200
130-
runs-on: self-hosted
130+
runs-on: ubuntu-20.04
131131
env:
132132
GAIA_REPO: ${{ github.workspace }}
133133
steps:
@@ -147,7 +147,7 @@ jobs:
147147
needs:
148148
- Lint
149149
if: ${{ false }}
150-
runs-on: self-hosted
150+
runs-on: ubuntu-20.04
151151
env:
152152
GAIA_REPO: ${{ github.workspace }}
153153
steps:
@@ -170,9 +170,9 @@ jobs:
170170
Integration_Tests:
171171
needs:
172172
- SDK
173-
# if: github.event_name != 'pull_request'
173+
#if: github.event_name != 'pull_request'
174174
if: ${{false}}
175-
runs-on: self-hosted
175+
runs-on: ubuntu-20.04
176176
timeout-minutes: 7
177177
env:
178178
GAIA_REPO: ${{ github.workspace }}
@@ -217,7 +217,7 @@ jobs:
217217
# Disabled due to inability to load libunwind.so.1 with Debug SDK.
218218
# if: github.event_name != 'pull_request'
219219
if: ${{ false }}
220-
runs-on: self-hosted
220+
runs-on: ubuntu-20.04
221221
timeout-minutes: 7
222222
env:
223223
GAIA_REPO: ${{ github.workspace }}
@@ -256,7 +256,7 @@ jobs:
256256
- Integration_Tests
257257
# if: github.event_name != 'pull_request'
258258
if: ${{false}}
259-
runs-on: self-hosted
259+
runs-on: ubuntu-20.04
260260
timeout-minutes: 10
261261
env:
262262
GAIA_REPO: ${{ github.workspace }}
@@ -292,7 +292,7 @@ jobs:
292292

293293
Integration_Samples:
294294
needs: SDK
295-
runs-on: self-hosted
295+
runs-on: ubuntu-20.04
296296
if: github.event_name != 'pull_request'
297297
env:
298298
GAIA_REPO: ${{ github.workspace }}
@@ -314,6 +314,8 @@ jobs:
314314
- name: Tests
315315
working-directory: ${{ github.workspace }}
316316
run: |
317+
if pgrep ssh-agent; then pkill ssh-agent; fi
318+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null 2>&1
317319
$GAIA_REPO/dev_tools/github-actions/execute_tests_against_package.sh \
318320
--verbose \
319321
--job-name $GITHUB_JOB \
@@ -332,7 +334,7 @@ jobs:
332334
needs:
333335
- Lint
334336
if: ${{ false }}
335-
runs-on: self-hosted
337+
runs-on: ubuntu-20.04
336338
env:
337339
GAIA_REPO: ${{ github.workspace }}
338340
steps:
@@ -357,7 +359,7 @@ jobs:
357359
# - Performance_Tests
358360
- Integration_Samples
359361
# - Documentation
360-
runs-on: self-hosted
362+
runs-on: ubuntu-20.04
361363
steps:
362364
- uses: geekyeggo/delete-artifact@v1
363365
with:

.github/workflows/performance-only.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
Performance_Tests:
13-
runs-on: self-hosted
13+
runs-on: ubuntu-20.04
1414
timeout-minutes: 10
1515
env:
1616
GAIA_REPO: ${{ github.workspace }}

0 commit comments

Comments
 (0)