From 817aa66f6248935a8b246675263d1c02f7bc7685 Mon Sep 17 00:00:00 2001 From: juls0730 <62722391+juls0730@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:27:58 -0500 Subject: [PATCH] update github workflows branches and update dynamic bages --- .github/workflows/loc.yml | 2 +- .github/workflows/rust.yml | 22 +++++++++++----------- .github/workflows/rustfmt-pr.yml | 4 ++-- .github/workflows/rustfmt.yml | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/loc.yml b/.github/workflows/loc.yml index 0a0b6e9..fd2bee4 100644 --- a/.github/workflows/loc.yml +++ b/.github/workflows/loc.yml @@ -27,7 +27,7 @@ jobs: steps: - env: LOC: ${{needs.count-loc.outputs.loc}} - uses: Schneegans/dynamic-badges-action@v1.6.0 + uses: Schneegans/dynamic-badges-action@v1.7.0 with: auth: ${{ secrets.GIST_SECRET }} gistID: c16f26c4c5ab7f613fe758c913f9e71f diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2440224..c439e91 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ "main" ] + branches: ["trunk"] pull_request: - branches: [ "main" ] + branches: ["trunk"] env: CARGO_TERM_COLOR: always @@ -13,15 +13,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set nightly rust - run: rustup override set nightly - - name: Add x86_64 target - run: rustup target add x86_64-unknown-none - - name: Install rust-src - run: rustup component add rust-src - - name: Build - run: cargo build --verbose + - uses: actions/checkout@v3 + - name: Set nightly rust + run: rustup override set nightly + - name: Add x86_64 target + run: rustup target add x86_64-unknown-none + - name: Install rust-src + run: rustup component add rust-src + - name: Build + run: cargo build --verbose # TODO: testing #- name: Run tests # run: cargo test --verbose diff --git a/.github/workflows/rustfmt-pr.yml b/.github/workflows/rustfmt-pr.yml index b67a1c1..ca22852 100644 --- a/.github/workflows/rustfmt-pr.yml +++ b/.github/workflows/rustfmt-pr.yml @@ -1,8 +1,8 @@ name: Rustfmt -on: +on: pull_request: - branches: [ "main" ] + branches: ["trunk"] jobs: format: diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index c90745f..1efec5c 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -1,8 +1,8 @@ name: RustFmt -on: +on: push: - branches: [ "main" ] + branches: ["trunk"] jobs: format: