update invite command #7634
Workflow file for this run
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
| # This is a basic workflow that is manually triggered | |
| name: Compilation and Format Check | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| compile: | |
| runs-on: ubuntu-latest | |
| name: Compilation Check | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: echo "VERSION=$(cat .zigversion)" >> $GITHUB_ENV | |
| - uses: mlugg/setup-zig@v2 | |
| with: | |
| version: ${{ env.VERSION }} | |
| - run: sudo apt install glslang-tools | |
| - run: wget -O ./Cubyz-fmt https://github.com/PixelGuys/Cubyz-formatter/releases/download/0.16.0+0/Cubyz-fmt-x86_64-linux | |
| - run: chmod +x ./Cubyz-fmt | |
| - run: | | |
| shopt -s nullglob | |
| for file in *.zon assets/*.zon assets/*/*.zon assets/*/*/*.zon assets/*/*/*/*.zon assets/*/*/*/*/*.zon assets/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*/*/*.zon assets/*/*/*/*/*/*/*/*/*/*.zon ; do | |
| zig ast-check $file | |
| done | |
| - run: | | |
| if ./Cubyz-fmt assets/ mods/ src/ *.zig *.zon | grep -q . ; then | |
| git diff --color=always; | |
| exit 1; | |
| fi | |
| - run: wget -O ./Cubyz-linter https://github.com/PixelGuys/Cubyz-linter/releases/download/0.16.0%2B1/Cubyz-linter-x86_64-linux | |
| - run: chmod +x ./Cubyz-linter | |
| - run: ./Cubyz-linter assets/ mods/ src/ *.zon | |
| - run: zig build | |
| - run: zig build -Dtarget=x86_64-windows-gnu | |
| - run: zig build -Dtarget=aarch64-linux-gnu | |
| - run: zig build -Dtarget=aarch64-windows-gnu | |
| - run: zig build test | |
| - run: find assets/cubyz/shaders -type f | xargs -L1 glslangValidator -G100 |