diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..edd44e5 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,24 @@ +name: Changelog check + +on: + pull_request: + # We will not track changes for the following packages/directories. + paths-ignore: + - "/examples/" + # Run on labeled/unlabeled in addition to defaults to detect + # adding/removing skip-changelog labels. + types: [opened, reopened, labeled, unlabeled, synchronize] + +jobs: + changelog: + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Check that changelog updated + uses: dangoslen/changelog-enforcer@v3 + with: + skipLabels: "skip-changelog" + missingUpdateErrorMessage: "Please add a changelog entry in the CHANGELOG.md file." \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1cf872..7471aa9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,10 +24,16 @@ jobs: name: Check strategy: matrix: + toolchain: + - stable + - nightly os: - ubuntu-latest #- windows-latest #- macos-14 + features: + - log + - defmt runs-on: ${{ matrix.os }} @@ -39,13 +45,17 @@ jobs: uses: actions/checkout@v4 - name: Install riscv32imac-unknown-none-elf target - run: rustup target add riscv32imac-unknown-none-elf + uses: dtolnay/rust-toolchain@v1 + with: + target: riscv32imac-unknown-none-elf + toolchain: ${{ matrix.toolchain }} + components: rust-src - name: Cache Dependencies uses: Swatinem/rust-cache@v2.7.5 - name: Run cargo check - run: cargo check --all-features --locked + run: cargo check --features ${{matrix.features}} --locked fmt: name: Rustfmt