Add CI passes for build --release
@@ -19,6 +19,11 @@ matrix:
rust: stable
env: CI_STAGE_CARGO_TEST=yes
+ - name: cargo build --release (stable)
+ os: linux
+ rust: stable
+ env: CI_STAGE_BUILD_RELEASE=yes
+
- name: Godot test (stable)
os: linux
rust: stable
@@ -33,6 +38,11 @@ matrix:
rust: nightly
env: CI_STAGE_CARGO_TEST=yes
+ - name: cargo build --release (nightly)
+ os: linux
+ rust: nightly
+ env: CI_STAGE_BUILD_RELEASE=yes
+
- name: Godot test (nightly)
os: linux
rust: nightly
@@ -47,11 +57,21 @@ matrix:
rust: stable
env: CI_STAGE_CARGO_TEST=yes
+ - name: cargo build --release (stable, windows)
+ os: windows
+ rust: stable
+ env: CI_STAGE_BUILD_RELEASE=yes
+
- name: cargo test (nightly, windows)
os: windows
rust: nightly
env: CI_STAGE_CARGO_TEST=yes
+ - name: cargo build --release (nightly, windows)
+ os: windows
+ rust: nightly
+ env: CI_STAGE_BUILD_RELEASE=yes
+
script:
- if [[ "$CI_STAGE_CARGO_FMT" == "yes" ]]; then
cargo fmt --all -- --check;
@@ -61,6 +81,10 @@ script:
cargo test --all --all-features;
fi
+ - if [[ "$CI_STAGE_BUILD_RELEASE" == "yes" ]]; then
+ cargo build --release;
+ fi
+
- if [[ "$CI_STAGE_GODOT_TEST" == "yes" ]]; then
cd test;
cargo build;
