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
71 echo "/bin" >> "$GITHUB_PATH"
72 echo "/sbin/Library/Apple/usr/bin" >> "$GITHUB_PATH"
73 echo "/usr/bin" >> "$GITHUB_PATH"
74 echo "/usr/local/bin" >> "$GITHUB_PATH"
75 echo "/usr/local/opt/coreutils/bin" >> "$GITHUB_PATH"
76 echo "/usr/local/opt/findutils/libexec/gnubin" >> "$GITHUB_PATH"
77 echo "/usr/local/opt/gettext/bin" >> "$GITHUB_PATH"
78 echo "/usr/local/opt/gnu-getopt/bin" >> "$GITHUB_PATH"
79 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
80 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
81 echo "/usr/sbin" >> "$GITHUB_PATH"
84 working-directory: ${{ env.WORKPATH }}/openwrt
87 - name: Build tools MacOS
88 working-directory: ${{ env.WORKPATH }}/openwrt
89 run: make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
93 uses: actions/upload-artifact@v3
95 name: macos-latest-logs
96 path: ${{ env.WORKPATH }}/openwrt/logs
100 uses: actions/upload-artifact@v3
102 name: macos-latest-config
103 path: ${{ env.WORKPATH }}/openwrt/.config
105 build-linux-buildbot:
106 name: Build tools with buildbot container
107 uses: ./.github/workflows/build-tools.yml