Skip to content

Commit

Permalink
macOS: Set the default sed to GNU sed.
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TERX committed Dec 15, 2019
1 parent fcaafa7 commit ad51541
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-openwrt-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
- name: Initialization environment
run: |
brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep wget quilt xz gnu-sed
brew ln gnu-getopt --force
hdiutil create -size 60g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage
hdiutil attach OpenWrt.sparseimage
echo "::add-path::/usr/local/opt/gnu-getopt/bin"
echo "::add-path::/usr/local/opt/coreutils/libexec/gnubin"
echo "::add-path::/usr/local/opt/gnu-sed/libexec/gnubin"
hdiutil create -size 60g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage
hdiutil attach OpenWrt.sparseimage
curl -fsSL https://raw.githubusercontent.com/P3TERX/dotfiles/master/.bashrc >> ~/.bashrc
sudo systemsetup -settimezone "Asia/Shanghai"
Expand All @@ -49,7 +49,7 @@ jobs:
run: |
git clone --depth 1 $REPO_URL -b $REPO_BRANCH openwrt
ln -sf /Volumes/OpenWrt/openwrt $GITHUB_WORKSPACE/openwrt
gsed -i "s/grep Apple.LLVM/grep -E 'Apple.(LLVM|clang)'/g" openwrt/include/prereq-build.mk
sed -i "s/grep Apple.LLVM/grep -E 'Apple.(LLVM|clang)'/g" openwrt/include/prereq-build.mk
- name: Update feeds
run: cd openwrt && ./scripts/feeds update -a
Expand Down

0 comments on commit ad51541

Please sign in to comment.