From 7b39c6b8f1d8c4d6a82bcde31ab45f9983ea5f65 Mon Sep 17 00:00:00 2001 From: Noah Friedman Date: Sun, 22 Oct 2023 14:55:13 -0400 Subject: [PATCH] Fix assumed directory name in CI build job --- .github/workflows/ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54b21d8..2a9b4d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ on: - '**Cargo.toml' - .github/workflows/ci.yml - .github/actions/*/action.yml + branches: [ '**' ] jobs: test: @@ -28,12 +29,12 @@ jobs: - name: Create a Cargo package containing a binary crate working-directory: ../ run: cargo new --bin --vcs=none test-bin - - name: Define dependencies of the package - working-directory: ../test-bin + - name: Add `weensy` as a dependency of the package run: | - echo 'weensy = { path = "../weensy/", features = ["t4bsp-rt"] }' \ - >> Cargo.toml - cargo add teensy4-bsp teensy4-panic -F teensy4-bsp/rt + echo "weensy = { path = '`pwd`' }" >> ../test-bin/Cargo.toml + - name: Define additional dependencies of the package + working-directory: ../test-bin + run: cargo add teensy4-bsp teensy4-panic -F teensy4-bsp/rt - name: Create the `main` program working-directory: ../test-bin run: |