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
55 echo "/bin" >> "$GITHUB_PATH"
56 echo "/sbin/Library/Apple/usr/bin" >> "$GITHUB_PATH"
57 echo "/usr/bin" >> "$GITHUB_PATH"
58 echo "/usr/local/bin" >> "$GITHUB_PATH"
59 echo "/usr/local/opt/coreutils/bin" >> "$GITHUB_PATH"
60 echo "/usr/local/opt/findutils/libexec/gnubin" >> "$GITHUB_PATH"
61 echo "/usr/local/opt/gettext/bin" >> "$GITHUB_PATH"
62 echo "/usr/local/opt/gnu-getopt/bin" >> "$GITHUB_PATH"
63 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
64 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
65 echo "/usr/sbin" >> "$GITHUB_PATH"
68 working-directory: ${{ env.WORKPATH }}/openwrt
71 - name: Build tools MacOS
72 working-directory: ${{ env.WORKPATH }}/openwrt
73 run: make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
77 uses: actions/upload-artifact@v3
79 name: macos-latest-logs
80 path: ${{ env.WORKPATH }}/openwrt/logs
84 uses: actions/upload-artifact@v3
86 name: macos-latest-config
87 path: ${{ env.WORKPATH }}/openwrt/.config
90 name: Build tools with buildbot container
91 uses: ./.github/workflows/build-tools.yml