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