Skip to content

Commit 2728b4f

Browse files
committed
feat: add self hosted runner ci
1 parent b098998 commit 2728b4f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
config:
2727
- os: "macOS-latest"
2828
dir: osx64
29-
arch: darwin-arm64
29+
arch: darwin-amd64
3030
artifacts: "plc"
3131
RUSTFLAGS: ""
32-
- os: "macOS-latest"
32+
- os: "self-hosted"
3333
dir: osx64
34-
arch: darwin-amd64
34+
arch: darwin-arm64
3535
artifacts: "plc"
3636
RUSTFLAGS: ""
3737
- os: "ubuntu-latest"
@@ -49,13 +49,15 @@ jobs:
4949
with:
5050
submodules: true
5151

52-
- name: Setup | Rust
53-
uses: ATiltedTree/setup-rust@v1
52+
- name: Install Rust (stable)
53+
uses: actions-rs/toolchain@v1
5454
with:
55-
rust-version: "1.62.1"
55+
profile: minimal
56+
override: true
5657

5758
- uses: actions/cache@v3
5859
name: Cache Cargo
60+
if: ${{ matrix.config.os != 'self-hosted' }}
5961
with:
6062
path: |
6163
~/.cargo/bin/

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ on:
2121
- '**.pi'
2222
- '**/Kagari.*'
2323
- 'codecov.yml'
24-
merge_group:
2524

2625
env:
2726
RUSTFLAGS: -Dwarnings
@@ -70,7 +69,7 @@ jobs:
7069
strategy:
7170
fail-fast: false
7271
matrix:
73-
os: ["ubuntu-latest", "windows-latest", "macOS-latest"]
72+
os: ["ubuntu-latest", "windows-latest", "macOS-latest", "self-hosted"]
7473
include:
7574
- RUSTFLAGS: "-Dwarnings"
7675
CARGO_INCREMENTAL: 1

0 commit comments

Comments
 (0)