Skip to content

Commit

Permalink
fix: update GA to have macos arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
wbeuil committed Nov 3, 2023
1 parent 94258f4 commit 0138876
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
os:
- ubuntu-latest
- macos-latest
- macos-13-xlarge

steps:
- name: Set architecture
run: |
if [ "${{ runner.os }}" == "Linux" ]; then
if [[ "${{ runner.os }}" == "Linux" && "${{ runner.arch }}" == "X64" ]]; then
echo "arch=linux-x64" >> $GITHUB_ENV
else
elif [[ "${{ runner.os }}" == "macOS" && "${{ runner.arch }}" == "X64" ]]; then
echo "arch=darwin-x64" >> $GITHUB_ENV
elif [[ "${{ runner.os }}" == "macOS" && "${{ runner.arch }}" == "ARM64" ]]; then
echo "arch=darwin-arm64" >> $GITHUB_ENV
fi
- name: Install build dependencies (MacOS)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cld3",
"description": "Unofficial Node.js bindings for Compact Language Detector v3 (CLD3)",
"version": "2.0.3",
"version": "2.0.4",
"main": "index.js",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 0138876

Please sign in to comment.