Use size_t for range alloc offsets to avoid integer overflows #1472
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 to help you get started with Actions | |
| name: CI | |
| # Controls when the action will run. Triggers the workflow on push or pull request | |
| # events but only for the master branch | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| # This workflow contains a single job called "build" | |
| build: | |
| name: ${{ matrix.name }}-build-and-test | |
| # The type of runner that the job will run on | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| name: [windows-latest, ubuntu-24.04] | |
| include: | |
| - name: windows-latest | |
| os: windows-latest | |
| config: win64-vstudio-debug | |
| physx: vc17 | |
| physxkey: vc17 | |
| gpulang: win64 | |
| - name: ubuntu-24.04 | |
| os: ubuntu-24.04 | |
| config: vulkan-linux-ninja-debug | |
| physx: linux | |
| physxkey: linux | |
| gpulang: linux | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - uses: actions/checkout@v2 | |
| - name: setup-msbuild | |
| if: startsWith(matrix.name, 'windows') | |
| uses: microsoft/setup-msbuild@v1 | |
| - name: Prepare Vulkan SDK | |
| uses: humbletim/setup-vulkan-sdk@v1.2.1 | |
| with: | |
| vulkan-query-version: 1.4.304.1 | |
| vulkan-components: SPIRV-Tools, Vulkan-Headers, Vulkan-Loader | |
| vulkan-use-cache: true | |
| - name: Set up Python 3.x | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.x' # Semantic version range syntax or exact version of a Python version | |
| architecture: 'x64' # Optional - x64 or x86, defaults to x64 | |
| - name: Clone dependencies | |
| run: | | |
| #pip install py7zr | |
| python fips fetch | |
| python fips set config ${{ matrix.config }} | |
| - name: Fix clang version | |
| if: startsWith(matrix.os, 'ubuntu') | |
| run: | | |
| echo "CC=clang-16" >> $GITHUB_ENV | |
| echo "CXX=clang++-16" >> $GITHUB_ENV | |
| - name: Setup missing software | |
| if: startsWith(matrix.os, 'ubuntu') | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev ninja-build libxcursor-dev libxrandr-dev libxrandr-dev libxinerama-dev libxi-dev uuid-dev libcurl4-gnutls-dev libbsd-dev libxxf86vm-dev | |
| - name: Store Deploy folder | |
| id: deploy | |
| shell: bash | |
| run: | | |
| pushd .. | |
| echo "root_dir=$(python -c 'import os; print(os.path.abspath(os.getcwd()));')" >> "$GITHUB_OUTPUT" | |
| - name: Check PhysX version | |
| id: physx-rev | |
| shell: bash | |
| run: | | |
| pushd ../physx | |
| echo "gitrev=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" | |
| popd | |
| - name: Cache PhysX | |
| id: cache-physx | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ steps.deploy.outputs.root_dir }}/fips-deploy/physx | |
| key: ${{ runner.os }}-physx-deploy-${{ steps.physx-rev.outputs.gitrev }} | |
| - name: Build PhysX | |
| if: steps.cache-physx.outputs.cache-hit != 'true' | |
| run: | | |
| python fips physx build ${{ matrix.physx }} debug | |
| - name: Check GPULang version | |
| id: gpulang-rev | |
| shell: bash | |
| run: | | |
| pushd ../gpulang | |
| echo "gitrev=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" | |
| popd | |
| - name: Check for GPULang cached build | |
| id: cache-gpulang | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ steps.deploy.outputs.root_dir }}/fips-deploy/gpulang | |
| key: ${{ runner.os }}-gpulang-${{ steps.gpulang-rev.outputs.gitrev }} | |
| - name: Build GPULang Compiler | |
| if: steps.cache-gpulang.outputs.cache-hit != 'true' | |
| run: | | |
| pushd ../gpulang | |
| python fips build ${{ matrix.gpulang }} | |
| popd | |
| # Runs a set of commands using the runners shell | |
| - name: Run prebuild steps | |
| run: | | |
| python fips nebula set work tests | |
| python fips nebula set toolkit . | |
| #python fips ultralight | |
| python fips gen | |
| - name: Compile | |
| run: | | |
| python fips build | |
| - name: Run Testmath | |
| run: | | |
| python fips run testmath | |
| - name: Run Testfoundation | |
| run: | | |
| python fips run testfoundation | |
| Notify: | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| name: Notify | |
| if: cancelled() == false && github.repository == 'gscept/nebula' | |
| steps: | |
| - name: Notification | |
| uses: gscept/action-telegram@v1.1.1 | |
| continue-on-error: true | |
| with: | |
| botToken: ${{ secrets.BotToken }} | |
| chatId: ${{ secrets.ChatID }} | |
| jobStatus: ${{ needs.build.result }} | |
| skipSuccess: false | |
| Documentation: | |
| runs-on: ubuntu-latest | |
| name: Documentation | |
| if: ${{ github.event_name == 'push' }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Doxygen Action | |
| uses: mattnotmitt/doxygen-action@v1.1.0 | |
| with: | |
| # Path to Doxyfile | |
| doxyfile-path: "./Doxyfile" # default is ./Doxyfile | |
| # Working directory | |
| working-directory: "./documentation" # default is . | |
| - name: Doxygen | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| deploy_key: ${{ secrets.NEB_DOC }} | |
| external_repository: gscept/nebula-doc | |
| publish_dir: ./documentation/html/ |