diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d81a0da..92f58850 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,18 +1,10 @@ -name: build +name: test on: push: - pull_request: - workflow_run: - # Use a workflow as a trigger of scheduled builds. Forked repositories can disable scheduled builds by disabling - # "scheduled" workflow, while maintaining ability to perform local CI builds. - workflows: - - scheduled branches: - - main - - test_actions - types: - - requested + - '**' + workflow_call: jobs: test-windows: @@ -21,12 +13,9 @@ jobs: VS_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise MSBUILD_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe steps: - - uses: actions/checkout@v2 - - - name: Update submodules - shell: cmd - run: | - git submodule update --init + - uses: actions/checkout@v4 + with: + submodules: 'true' - name: Cache dependencies id: cache-deps @@ -59,11 +48,12 @@ jobs: test-linux: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + submodules: 'true' - name: Install Dependencies run: | - git submodule update --init wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo apt-get install libsdl2-dev libfreetype-dev libvorbis-dev libogg-dev libopenal-dev libdwarf-dev libelf-dev wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc @@ -88,11 +78,12 @@ jobs: check-formatting: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + submodules: 'true' - name: Install Dependencies run: | - git submodule update --init wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main' sudo apt update