Resource Synchronization #684
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
| name: CI Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Cache Toolchains | |
| id: cache-toolchains | |
| uses: actions/cache@v4 | |
| with: | |
| key: cache-key-${{ hashFiles('configure.sh') }} | |
| restore-keys: | | |
| cache-key-${{ hashFiles('configure.sh') }} | |
| path: | | |
| ./toolchains | |
| - name: Install Development Environment | |
| run: | | |
| brew install mingw-w64 | |
| pip3 install meson==1.10.0 --break-system-packages | |
| - name: Configuration | |
| if: ${{ steps.cache-toolchains.outputs.cache-hit != 'true' }} | |
| run: ./configure.sh | |
| - name: Save Cache | |
| id: cache-save | |
| if: ${{ steps.cache-toolchains.outputs.cache-hit != 'true' }} | |
| uses: actions/cache/save@v4 | |
| with: | |
| key: cache-key-${{ hashFiles('configure.sh') }} | |
| path: | | |
| ./toolchains | |
| - name: Select Xcode Version | |
| run: sudo xcode-select -s /Applications/Xcode_16.1.app | |
| - name: Build | |
| run: | | |
| meson setup --cross-file build-win64.txt --native-file build-osx.txt -Dwine_builtin_dll=true -Dnative_llvm_path=toolchains/llvm-darwin -Dwine_install_path=toolchains/wine -Dbuild_airconv_for_windows=true -Denable_nvapi=true -Denable_nvngx=true build --buildtype debugoptimized | |
| meson compile -C build | |
| - name: Tar | |
| run: tar -zcf artifacts.tar.gz build/src | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts | |
| path: artifacts.tar.gz | |
| - name: Build (release) | |
| run: | | |
| meson setup --cross-file build-win64.txt --native-file build-osx.txt -Dwine_builtin_dll=true -Denable_nvapi=true -Denable_nvngx=true -Dnative_llvm_path=toolchains/llvm-darwin -Dwine_install_path=toolchains/wine build-release --buildtype release | |
| meson compile -C build-release | |
| - name: Tar (release) | |
| run: tar -zcf artifacts-release.tar.gz build-release/src | |
| - name: Upload (releases) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-release | |
| path: artifacts-release.tar.gz | |
| - name: Build WoW64 (release) | |
| run: | | |
| meson setup --cross-file build-win32.txt --native-file build-osx.txt -Dwine_builtin_dll=true -Dnative_llvm_path=toolchains/llvm-darwin -Dwine_install_path=toolchains/wine build-release-wow64 --buildtype release | |
| meson compile -C build-release-wow64 | |
| - name: Tar WoW64 (release) | |
| run: tar -zcf artifacts-release-wow64.tar.gz build-release-wow64/src | |
| - name: Upload WoW64 (releases) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-release-wow64 | |
| path: artifacts-release-wow64.tar.gz | |
| - name: Build (gcc-release) | |
| run: | | |
| meson setup --cross-file build-win64-sys.txt --native-file build-osx.txt -Dwine_builtin_dll=true -Denable_nvapi=true -Denable_nvngx=true -Dnative_llvm_path=toolchains/llvm-darwin -Dwine_install_path=toolchains/wine build-release-gcc --buildtype release | |
| meson compile -C build-release-gcc | |
| - name: Tar (gcc-release) | |
| run: tar -zcf artifacts-release-gcc.tar.gz build-release-gcc/src | |
| - name: Upload (gcc-releases) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-release-gcc | |
| path: artifacts-release-gcc.tar.gz | |
| - name: Build WoW64 (gcc-release) | |
| run: | | |
| meson setup --cross-file build-win32-sys.txt --native-file build-osx.txt -Dwine_builtin_dll=true -Dnative_llvm_path=toolchains/llvm-darwin -Dwine_install_path=toolchains/wine build-release-wow64-gcc --buildtype release | |
| meson compile -C build-release-wow64-gcc | |
| - name: Tar WoW64 (gcc-release) | |
| run: tar -zcf artifacts-release-wow64-gcc.tar.gz build-release-wow64-gcc/src | |
| - name: Upload WoW64 (gcc-releases) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-release-wow64-gcc | |
| path: artifacts-release-wow64-gcc.tar.gz |