1
Fork 0

feat: Improve CI

Remove Linux builds, as Wwise doesn't run there anyways.
This commit is contained in:
Lucas Schwiderski 2022-04-26 10:27:50 +02:00
parent d624c9e28a
commit 71886dbb63
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -21,18 +21,6 @@ rust-nightly:debug:
- cargo build --locked - cargo build --locked
allow_failure: true allow_failure: true
rust-latest:release:linux:
stage: build
image: rust:latest
artifacts:
name: "binary:linux"
paths:
- target/release/wwise_fix
expire_in: 1 week
script:
- cargo build --release --locked
- strip target/release/wwise_fix
rust-latest:release:windows: rust-latest:release:windows:
stage: build stage: build
image: rust:latest image: rust:latest
@ -50,19 +38,12 @@ rust-latest:release:windows:
- cargo build --release --target x86_64-pc-windows-gnu --locked - cargo build --release --target x86_64-pc-windows-gnu --locked
- strip target/x86_64-pc-windows-gnu/release/wwise_fix.exe - strip target/x86_64-pc-windows-gnu/release/wwise_fix.exe
upload:binary:linux:
stage: upload
needs: ["rust-latest:release:linux"]
script:
- apt-get update && apt-get install -y --no-install-recommends git curl
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file target/release/wwise_fix "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/wwise_fix/$(git describe)/wwise_fix"'
upload:binary:windows: upload:binary:windows:
stage: upload stage: upload
needs: ["rust-latest:release:windows"] needs: ["rust-latest:release:windows"]
script: script:
- apt-get update && apt-get install -y --no-install-recommends git curl - apt-get update && apt-get install -y --no-install-recommends git curl
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file target/x86_64-pc-windows-gnu/release/wwise_fix.exe "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/wwise_fix/$(git describe)/wwise_fix.exe"' - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file target/x86_64-pc-windows-gnu/release/wwise_fix.exe "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/wwise_fix/$(git describe || git rev-parse --short HEAD)/wwise_fix.exe"'
include: include:
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml