Skip to content

Commit 1f0d6da

Browse files
committed
try workflow run trigger
Signed-off-by: BAStos525 <[email protected]>
1 parent 50705f8 commit 1f0d6da

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Iroha2::Main
2+
23
on:
34
push:
45
branches: [main]
6+
7+
env:
8+
TOOLCHAIN_VER: nightly-2024-09-09
9+
510
jobs:
611
build:
712
runs-on: ubuntu-latest
@@ -16,9 +21,9 @@ jobs:
1621
- name: Checkout code
1722
uses: actions/checkout@v4
1823
- name: Install correct rust version
19-
run: rustup install nightly-2024-09-09 && rustup component add rust-src --toolchain nightly-2024-09-09
24+
run: rustup install ${{ env.TOOLCHAIN_VER }} && rustup component add rust-src --toolchain ${{ env.TOOLCHAIN_VER }}
2025
- name: Set toolchain
21-
run: rustup default nightly-2024-09-09
26+
run: rustup default ${{ env.TOOLCHAIN_VER }}
2227
- name: Maturin build
2328
run: |
2429
pip install maturin

.github/workflows/pr-pytests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
# branches: [main]
88
push:
99
branches: [i2/ci/py-sonar]
10+
11+
env:
12+
TOOLCHAIN_VER: nightly-2024-09-09
13+
IROHA_BRANCH: 2.0.0-rc.1
1014

1115
jobs:
1216
pytest:
@@ -24,11 +28,11 @@ jobs:
2428
- name: Install dependencies
2529
run: pip install poetry tomli-w
2630
- name: Checkout irohad repo code
27-
run: git clone --depth 1 https://github.com/hyperledger-iroha/iroha.git -b 2.0.0-rc.1 iroha_daemon
31+
run: git clone --depth 1 https://github.com/hyperledger-iroha/iroha.git -b ${{ env.IROHA_BRANCH }} iroha_daemon
2832
- name: Install correct rust version
29-
run: rustup install nightly-2024-09-09 && rustup component add rust-src --toolchain nightly-2024-09-09
33+
run: rustup install ${{ env.TOOLCHAIN_VER }} && rustup component add rust-src --toolchain ${{ env.TOOLCHAIN_VER }}
3034
- name: Set toolchain
31-
run: rustup default nightly-2024-09-09
35+
run: rustup default ${{ env.TOOLCHAIN_VER }}
3236
- name: Build irohad
3337
run: cd iroha_daemon && cargo build --release && mkdir target/debug -p && cp target/release/irohad target/debug/irohad && cp target/release/iroha target/debug/iroha
3438
- name: Build kagami

0 commit comments

Comments
 (0)