Skip to content

Commit

Permalink
Fixed gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Aug 30, 2024
1 parent a397ece commit 6692562
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
steps:
- uses: ikalnytskyi/action-setup-postgres@v4
- uses: actions/checkout@master
- if: matrix.target == 'x86_64-apple-darwin'
name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- if: matrix.target == 'x86_64-apple-darwin'
name: Install dependencies
run: |
brew install postgresql
- name: Compile and release
uses: rust-build/[email protected]
env:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ jobs:
target: x86_64-apple-darwin
default: true
override: true

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install dependencies
run: |
brew install postgresql
- name: Build for mac
run: cargo build --all --release && strip target/release/podfetch && mv target/release/podfetch target/release/podfetch_darwin
- name: Copy to root
Expand Down

0 comments on commit 6692562

Please sign in to comment.