Skip to content

Commit 360894c

Browse files
matttbearighi
authored andcommitted
gh: import and adapt rust workflow
Two modifications have been done: - Restrict the build on push to the main branch only, similar to what was done in commit 4da53c3 ("github: restrict builds on push to the main branch") - Change the working directory to ./virtme_ng_init, because the root directory is now different. Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
1 parent bcfcc9d commit 360894c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

virtme_ng_init/.github/workflows/rust.yml renamed to .github/workflows/rust.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Rust
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68

79
env:
@@ -12,6 +14,10 @@ jobs:
1214

1315
runs-on: ubuntu-latest
1416

17+
defaults:
18+
run:
19+
working-directory: ./virtme_ng_init
20+
1521
steps:
1622
- uses: actions/checkout@v3
1723
- name: Coding style

0 commit comments

Comments
 (0)