Skip to content

Commit f38da25

Browse files
authored
chore: migrate CI to public runner (#2100)
1 parent 6980568 commit f38da25

File tree

5 files changed

+14
-68
lines changed

5 files changed

+14
-68
lines changed

.github/workflows/bundle-stats.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ permissions:
1212
jobs:
1313
bundle-stats:
1414
name: Bundle stats compare
15-
runs-on: [self-hosted, rspack-common, ARM64]
15+
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v3
19+
- name: Install protoc
20+
uses: arduino/setup-protoc@v1
1921
- uses: actions/setup-node@v3
2022
with:
2123
node-version: "16"
22-
architecture: "arm64"
2324
- name: Install dependencies && and build lib
2425
run: |
2526
node -e "console.log(process.arch)"

.github/workflows/check-js.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ concurrency:
1616
jobs:
1717
test-js:
1818
name: Node binding test
19-
runs-on: [self-hosted, rspack-common]
19+
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout repository
2222
uses: actions/checkout@v3
23-
# - name: Install protoc
24-
# uses: arduino/setup-protoc@v1
2523
with:
2624
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Install protoc
26+
uses: arduino/setup-protoc@v1
2727
- uses: actions/setup-node@v3
2828
with:
2929
node-version: "16"

.github/workflows/check-rs.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ concurrency:
2222
cancel-in-progress: true
2323

2424
env:
25-
RUSTFLAGS: -D warnings
25+
RUSTFLAGS: -D warnings
2626
# TRACE: DEBUG
2727

2828
jobs:
2929
format:
3030
name: Format Rust Files
31-
runs-on: [self-hosted, rspack-common]
31+
runs-on: ubuntu-latest
3232
steps:
3333
# - name: Cleanup workspace
3434
# uses: TooMuch4U/[email protected]
@@ -53,21 +53,16 @@ jobs:
5353

5454
lint:
5555
name: Lint Rust Files
56-
runs-on: [self-hosted, rspack-common]
56+
runs-on: ubuntu-latest
5757
steps:
58-
# - name: Cleanup workspace
59-
# uses: TooMuch4U/[email protected]
60-
# if: ${{ always() }}
6158
- name: Checkout repository
6259
uses: actions/checkout@v3
63-
# - name: Install protoc
64-
# uses: arduino/setup-protoc@v1
6560
with:
6661
repo-token: ${{ secrets.GITHUB_TOKEN }}
62+
- name: Install protoc
63+
uses: arduino/setup-protoc@v1
6764
- name: Install toolchain
6865
run: rustup show
69-
#- name: Cache
70-
# uses: speedy-js/rust-cache-self-hosted@v1
7166
- name: Run cargo check
7267
run: cargo check --workspace --all-targets --release --locked
7368

@@ -84,18 +79,15 @@ jobs:
8479
name: Rust test
8580
strategy:
8681
fail-fast: true
87-
runs-on: [self-hosted, rspack-common]
82+
runs-on: ubuntu-latest
8883
timeout-minutes: 30
8984
steps:
90-
# - name: Cleanup workspace
91-
# uses: TooMuch4U/[email protected]
92-
# if: ${{ always() }}
9385
- name: Checkout repository
9486
uses: actions/checkout@v3
95-
# - name: Install protoc
96-
# uses: arduino/setup-protoc@v1
9787
with:
9888
repo-token: ${{ secrets.GITHUB_TOKEN }}
89+
- name: Install protoc
90+
uses: arduino/setup-protoc@v1
9991
- uses: actions/setup-node@v3
10092
with:
10193
node-version: "16"

.github/workflows/release.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,7 @@ jobs:
5959
REPOSITORY: ${{ github.repository }}
6060
PULL_REQUEST_NUMBER: ${{ github.event.issue.number }}
6161
COMMENT: ${{ toJson(github.event.comment) }}
62-
artifact:
63-
runs-on: ubuntu-latest
64-
if: ${{ github.event_name == 'workflow_dispatch' }}
65-
steps:
66-
- name: Poor kids' remove old artifacts
67-
uses: actions/github-script@v6
68-
id: artifact
69-
with:
70-
script: |
71-
const res = await github.rest.actions.listArtifactsForRepo({
72-
owner: context.repo.owner,
73-
repo: context.repo.repo,
74-
})
75-
76-
res.data.artifacts
77-
.forEach(({ id }) => {
78-
github.rest.actions.deleteArtifact({
79-
owner: context.repo.owner,
80-
repo: context.repo.repo,
81-
artifact_id: id,
82-
})
83-
})
8462
build:
85-
needs:
86-
- artifact
8763
strategy:
8864
fail-fast: false
8965
matrix:

.github/workflows/test.yml.bak renamed to .github/workflows/test.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,7 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19-
artifact:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- name: Poor kids' remove old artifacts
23-
uses: actions/github-script@v6
24-
id: artifact
25-
with:
26-
script: |
27-
const res = await github.rest.actions.listArtifactsForRepo({
28-
owner: context.repo.owner,
29-
repo: context.repo.repo,
30-
})
31-
32-
res.data.artifacts
33-
.forEach(({ id }) => {
34-
github.rest.actions.deleteArtifact({
35-
owner: context.repo.owner,
36-
repo: context.repo.repo,
37-
artifact_id: id,
38-
})
39-
})
4019
build:
41-
needs:
42-
- artifact
4320
strategy:
4421
fail-fast: false
4522
matrix:

0 commit comments

Comments
 (0)