From 2c4fd14727adb703a373f4cc34387b8e7f1b7243 Mon Sep 17 00:00:00 2001 From: "Matthieu Baerts (NGI0)" Date: Mon, 6 Jan 2025 11:21:23 +0100 Subject: [PATCH] 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) --- {virtme_ng_init/.github => .github}/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) rename {virtme_ng_init/.github => .github}/workflows/rust.yml (76%) diff --git a/virtme_ng_init/.github/workflows/rust.yml b/.github/workflows/rust.yml similarity index 76% rename from virtme_ng_init/.github/workflows/rust.yml rename to .github/workflows/rust.yml index 9100db9..3bcf0e3 100644 --- a/virtme_ng_init/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,6 +2,8 @@ name: Rust on: push: + branches: + - main pull_request: env: @@ -12,6 +14,10 @@ jobs: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./virtme_ng_init + steps: - uses: actions/checkout@v3 - name: Coding style