7 - '.github/workflows/tools.yml'
18 uses: actions/checkout@v2
24 echo "WORKPATH=/Volumes/OpenWrt" >> "$GITHUB_ENV"
25 hdiutil create -size 20g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage
26 hdiutil attach OpenWrt.sparseimage
27 mv "$GITHUB_WORKSPACE/openwrt" /Volumes/OpenWrt/
29 - name: Install required prereq on MacOS
30 working-directory: ${{ env.WORKPATH }}/openwrt
60 echo "/bin" >> "$GITHUB_PATH"
61 echo "/sbin/Library/Apple/usr/bin" >> "$GITHUB_PATH"
62 echo "/usr/bin" >> "$GITHUB_PATH"
63 echo "/usr/local/bin" >> "$GITHUB_PATH"
64 echo "/usr/local/opt/coreutils/bin" >> "$GITHUB_PATH"
65 echo "/usr/local/opt/findutils/libexec/gnubin" >> "$GITHUB_PATH"
66 echo "/usr/local/opt/gettext/bin" >> "$GITHUB_PATH"
67 echo "/usr/local/opt/gnu-getopt/bin" >> "$GITHUB_PATH"
68 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
69 echo "/usr/local/opt/make/libexec/gnubin" >> "$GITHUB_PATH"
70 echo "/usr/sbin" >> "$GITHUB_PATH"
73 working-directory: ${{ env.WORKPATH }}/openwrt
76 - name: Build tools MacOS
77 working-directory: ${{ env.WORKPATH }}/openwrt
78 run: make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
82 uses: actions/upload-artifact@v2
84 name: macos-latest-logs
85 path: ${{ env.WORKPATH }}/openwrt/logs
89 uses: actions/upload-artifact@v2
91 name: macos-latest-config
92 path: ${{ env.WORKPATH }}/openwrt/.config
95 runs-on: ubuntu-latest
96 container: registry.gitlab.com/openwrt/buildbot/buildworker-3.4.1
100 uses: actions/checkout@v2
104 - name: Fix permission
106 chown -R buildbot:buildbot openwrt
109 shell: su buildbot -c "sh -e {0}"
110 working-directory: openwrt
113 - name: Build tools BuildBot Container
114 shell: su buildbot -c "sh -e {0}"
115 working-directory: openwrt
116 run: make tools/install -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh
120 uses: actions/upload-artifact@v2
122 name: linux-buildbot-logs
125 - name: Upload config
127 uses: actions/upload-artifact@v2
129 name: linux-buildbot-config
130 path: openwrt/.config