Skip to content

Commit d98df34

Browse files
committed
self hosted
1 parent 9b13239 commit d98df34

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

.github/workflows/rust-test.yaml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: rust test
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ self-hosted-runner-experiment ]
66
pull_request:
77
branches: [ main ]
88

@@ -11,7 +11,7 @@ env:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: self-hosted
1515
strategy:
1616
matrix:
1717
db:
@@ -28,35 +28,6 @@ jobs:
2828
- name: Checkout sources
2929
uses: actions/checkout@v2
3030

31-
- name: Install stable toolchain
32-
uses: actions-rs/toolchain@v1
33-
with:
34-
profile: minimal
35-
toolchain: stable
36-
override: true
37-
38-
- run: rustup toolchain install stable --profile minimal
39-
40-
- uses: Swatinem/rust-cache@v2
41-
with:
42-
# To only cache runs from `master`:
43-
save-if: ${{ github.ref == 'refs/heads/master' }}
44-
# Specifies what to use as the backend providing cache
45-
# Can be set to either "github" or "buildjet"
46-
# default: "github"
47-
cache-provider: "github"
48-
49-
- name: build docker-compose services for integration tests
50-
run: docker compose -f docker-compose.yml up -d
51-
env:
52-
MYSQL_VERSION: ${{ matrix.db.mysql }}
53-
PG_VERSION: ${{ matrix.db.postgres }}
54-
MYSQL_MIGRATION_FILE: "${{ matrix.db.mysql == '5.6' && 'mysql_migration_5_6.sql' || 'mysql_migration.sql' }}"
55-
56-
- uses: GuillaumeFalourd/wait-sleep-action@v1
57-
with:
58-
time: '10' # for 10 seconds
59-
6031
- name: Check the docker-compose services running
6132
run: docker ps -a
6233

.github/workflows/self-hosted.yaml

Whitespace-only changes.

0 commit comments

Comments
 (0)