Fix bypass not having value on PR&commit (#920)
This commit is contained in:
parent
52df02c0f1
commit
93abb8cdd5
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -37,14 +37,14 @@ jobs:
|
|||||||
run: zig build
|
run: zig build
|
||||||
|
|
||||||
- name: Build with Tracy
|
- name: Build with Tracy
|
||||||
if: ${{ matrix.os != 'macos-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os != 'macos-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
run: zig build -Denable_tracy -Denable_tracy_allocation
|
run: zig build -Denable_tracy -Denable_tracy_allocation
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: zig build test
|
run: zig build test
|
||||||
|
|
||||||
- name: Build artifacts
|
- name: Build artifacts
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
declare -a targets=("x86_64-windows" "x86_64-linux" "x86_64-macos" "x86-windows" "x86-linux" "aarch64-linux" "aarch64-macos")
|
declare -a targets=("x86_64-windows" "x86_64-linux" "x86_64-macos" "x86-windows" "x86-linux" "aarch64-linux" "aarch64-macos")
|
||||||
mkdir -p "artifacts/"
|
mkdir -p "artifacts/"
|
||||||
@ -64,49 +64,49 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Upload x86_64-windows artifact
|
- name: Upload x86_64-windows artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zls-x86_64-windows
|
name: zls-x86_64-windows
|
||||||
path: artifacts/x86_64-windows/
|
path: artifacts/x86_64-windows/
|
||||||
|
|
||||||
- name: Upload x86_64-linux artifact
|
- name: Upload x86_64-linux artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zls-x86_64-linux
|
name: zls-x86_64-linux
|
||||||
path: artifacts/x86_64-linux/
|
path: artifacts/x86_64-linux/
|
||||||
|
|
||||||
- name: Upload x86_64-macos artifact
|
- name: Upload x86_64-macos artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zls-x86_64-macos
|
name: zls-x86_64-macos
|
||||||
path: artifacts/x86_64-macos/
|
path: artifacts/x86_64-macos/
|
||||||
|
|
||||||
- name: Upload x86-windows artifact
|
- name: Upload x86-windows artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zls-x86-windows
|
name: zls-x86-windows
|
||||||
path: artifacts/x86-windows/
|
path: artifacts/x86-windows/
|
||||||
|
|
||||||
- name: Upload x86-linux artifact
|
- name: Upload x86-linux artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zls-x86-linux
|
name: zls-x86-linux
|
||||||
path: artifacts/x86-linux/
|
path: artifacts/x86-linux/
|
||||||
|
|
||||||
- name: Upload aarch64-linux artifact
|
- name: Upload aarch64-linux artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zls-aarch64-linux
|
name: zls-aarch64-linux
|
||||||
path: artifacts/aarch64-linux/
|
path: artifacts/aarch64-linux/
|
||||||
|
|
||||||
- name: Upload aarch64-macos artifact
|
- name: Upload aarch64-macos artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts == 'false' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zls-aarch64-macos
|
name: zls-aarch64-macos
|
||||||
|
Loading…
Reference in New Issue
Block a user