Skip to content

Commit

Permalink
Add macOS support.
Browse files Browse the repository at this point in the history
  • Loading branch information
zadlg committed Feb 19, 2024
1 parent 03586c7 commit 7362024
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
on: [push]

jobs:
buck2_default_job:
buck2_linux:
runs-on: ubuntu-latest
name: A job to try our buck2 composite action
name: A job to try our buck2 composite action on ubuntu.
steps:
- uses: actions/checkout@v4
- name: Use buck2 composite action
uses: zadlg/buck2-github-composite-action@v1
- name: Verify that buck2 binary is available
run: |
/usr/bin/buck2 --version
buck2_macos:
runs-on: macos-13
name: A job to try our buck2 composite action on macOS.
steps:
- uses: actions/checkout@v4
- name: Use buck2 composite action
uses: zadlg/buck2-github-composite-action@v3
with:
arch: x86_64
platform: apple-darwin
sha384: 230272fa57843a024759187e5606859755250e612a288122ea91ce54f5e602186dfc8cd06c9e895c7d66954b16c9f92
output-path: /usr/local/bin/buck2
- name: Verify that buck2 binary is available
run: |
/usr/local/bin/buck2 --version
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ runs:
steps:
- name: Download dependencies
shell: bash
run: sudo apt-get update && sudo apt-get install -y curl zstd
run: |
os=$(uname -s)
if [ "${os}" = "Darwin" ]; then
brew update && brew install curl zstd
elif [ "${os}" = "Linux" ]; then
sudo apt-get update && sudo apt-get install -y curl zstd
else
printf "Unsupported OS %s\n" "${os}"
fi
- name: Download buck2 binary
shell: bash
Expand Down

0 comments on commit 7362024

Please sign in to comment.