Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
command: build
args: --workspace --all-targets --all-features --release



- name: Check for release
id: is-release
shell: bash
Expand All @@ -50,8 +48,6 @@ jobs:
name: rust_cat.exe
path: target/release/rust_cat.exe



- name: Publish archives and packages (Windows)
uses: softprops/action-gh-release@v1
if: steps.is-release.outputs.IS_RELEASE
Expand All @@ -61,15 +57,21 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


# Create universal macOS app bundle
build-macos:
name: Create universal macOS app bundle
runs-on: macos-latest
if: github.event_name != 'pull_request' || github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down Expand Up @@ -110,17 +112,11 @@ jobs:

# Auto-approve Dependabot PRs if build succeeds
dependabot-auto-approve:
runs-on: windows-latest
runs-on: ubuntu-latest
needs: [build-windows, build-macos]
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
steps:
- name: Auto-approve PR
uses: hmarr/auto-approve-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Enable auto-merge
run: |
gh pr merge --auto --squash "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading