7 - '.github/workflows/build-tools.yml'
8 - '.github/workflows/tools.yml'
12 - '.github/workflows/build-tools.yml'
13 - '.github/workflows/tools.yml'
19 group: ${{ github.workflow }}-${{ github.ref }}
20 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
24 name: Build tools with macos latest
29 uses: actions/checkout@v3
35 echo "WORKPATH=/Volumes/OpenWrt" >> "$GITHUB_ENV"
36 hdiutil create -size 20g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage
37 hdiutil attach OpenWrt.sparseimage
38 mv "$GITHUB_WORKSPACE/openwrt" /Volumes/OpenWrt/
40 - name: Install required prereq on MacOS
41 working-directory: ${{ env.WORKPATH }}/openwrt
65 echo "/bin" >> "$GITHUB_PATH"
66 echo "/sbin/Library/Apple/usr/bin" >> "$GITHUB_PATH"
67 echo "/usr/bin" >> "$GITHUB_PATH"
68 echo "/usr/local/bin" >> "$GITHUB_PATH"
69 echo "/usr/local/opt/coreutils/bin" >> "$GITHUB_PATH"
70 echo "/usr/local/opt/findutils/libexec/gnubin" >> "$GITHUB_PATH"
71 echo "/usr/local/opt/gettext/bin" >> "$GITHUB_PATH"
72 echo "/usr/local/opt/gnu-getopt/bin" >> "$GITHUB_PATH"
73 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
74 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
75 echo "/usr/sbin" >> "$GITHUB_PATH"
78 working-directory: ${{ env.WORKPATH }}/openwrt
81 - name: Build tools MacOS
82 working-directory: ${{ env.WORKPATH }}/openwrt
83 run: make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
87 uses: actions/upload-artifact@v3
89 name: macos-latest-logs
90 path: ${{ env.WORKPATH }}/openwrt/logs
94 uses: actions/upload-artifact@v3
96 name: macos-latest-config
97 path: ${{ env.WORKPATH }}/openwrt/.config
100 name: Build tools with buildbot container
101 uses: ./.github/workflows/build-tools.yml