Skip to content

Commit

Permalink
💚 Replace nix-env by brew install
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 12, 2024
1 parent 4ae1531 commit 02e8bdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,14 @@ jobs:
sudo add-apt-repository ppa:xmake-io/xmake
sudo apt-get -y update
sudo apt-get -y install librime-dev librime1 xmake
- uses: cachix/install-nix-action@v24
if: runner.os == 'macOS'
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{secrets.GITHUB_TOKEN}}
- name: Install dependencies
if: runner.os == 'macOS'
run: |
nix-env -if'<nixpkgs>' librime xmake
echo "$HOME/.nix-profile/bin" >> "${GITHUB_PATH}"
brew install librime xmake
- name: Build
run: |
PKG_CONFIG_PATH="$HOME/.nix-profile/lib/pkgconfig" yarn install
PKG_CONFIG_PATH="$HOME/.nix-profile/lib/pkgconfig" yarn pack
yarn install
yarn pack
env:
NODE_ENV: production
- uses: actions/upload-artifact@v4
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ apt-get -y install pkg-config librime xmake
# Nix
# without any extra operation
# homebrew
brew tap tonyfettes/homebrew-rime
brew install pkg-config librime xmake
# Windows msys2
pacboy -S --noconfirm pkg-config librime gcc xmake
Expand Down

0 comments on commit 02e8bdc

Please sign in to comment.