Skip to content

Commit a122942

Browse files
tomusdrwpepyakin
authored andcommitted
Switching to self-hosted runner.
1 parent ae3cfa0 commit a122942

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,31 @@ env:
1010
jobs:
1111
build_and_test:
1212
name: Sugondat - latest
13-
runs-on: ubuntu-latest
13+
runs-on: self-hosted
1414
strategy:
1515
matrix:
1616
toolchain:
1717
- stable
1818
steps:
1919
- uses: actions/checkout@v3
20-
- run: sudo apt-get install protobuf-compiler
21-
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
22-
- run: rustup target add wasm32-unknown-unknown
23-
- run: rustup install nightly && rustup target add wasm32-unknown-unknown --toolchain nightly
24-
- run: cargo build --verbose --all
25-
- run: cargo test --verbose --all
20+
- run: apt-get update
21+
- run: apt-get install -y protobuf-compiler
22+
- run: apt-get install -y build-essential
23+
- run: apt-get install -y libclang-dev
24+
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
25+
- name: Setup toolchain
26+
run: |
27+
source "$HOME/.cargo/env"
28+
rustup update ${{ matrix.toolchain }}
29+
rustup default ${{ matrix.toolchain }}
30+
rustup target add wasm32-unknown-unknown
31+
rustup install nightly
32+
rustup target add wasm32-unknown-unknown --toolchain nightly
33+
- name: cargo build
34+
run: |
35+
source "$HOME/.cargo/env"
36+
cargo build --verbose --all
37+
- name: cargo test
38+
run: |
39+
source "$HOME/.cargo/env"
40+
cargo test --verbose --all

0 commit comments

Comments
 (0)