调整视图宽度判断条件 #1570
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build deb | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| submodules: true | |
| - name: Check cache | |
| run: | | |
| echo upstream_heads=`git ls-remote https://github.com/roothide/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1` >> $GITHUB_ENV | |
| - name: Use cache | |
| id: cache | |
| uses: actions/[email protected] | |
| with: | |
| path: ${{ github.workspace }}/theos | |
| key: ${{ runner.os }}-${{ env.upstream_heads }} | |
| - name: Prepare Theos | |
| uses: huami1314/theos-action@main | |
| - name: Setup GNU Make | |
| run: | | |
| echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH | |
| - name: Build package | |
| run: | | |
| rm -f packages/* | |
| make package FINALPACKAGE=1 -j$(sysctl -n hw.ncpu) | |
| make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 -j$(sysctl -n hw.ncpu) | |
| make package THEOS_PACKAGE_SCHEME=roothide FINALPACKAGE=1 -j$(sysctl -n hw.ncpu) | |
| - name: Upload specific Deb packages | |
| uses: actions/[email protected] | |
| with: | |
| name: DYYY | |
| path: ${{ github.workspace }}/packages/*.deb |