From c2d803c553cfe8d79a7b38566da73573e69f850d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 19:19:11 -0600 Subject: [PATCH 1/8] CI work --- .gitlab-ci.yml | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e6b37d9..6daa052 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,28 @@ -run_test: +stages: + - test + - build + - deploy-prod + +test: + stage: test image: rust:latest before_script: - - rustup --version - - rustc -vV - - rustup component add clippy - - rustup component add rustfmt - - apt install -y fdisk + - apt update -m + - apt install -y libfdisk-dev libclang-19-dev script: - - cargo clippy -- --deny clippy::pedantic - - cargo fmt --all -- --check - - cargo test + - cargo test --verbose + +build: + stage: build + image: rust:latest + before_script: + - apt update -m + - apt install -y libfdisk-dev libclang-19-dev + script: + - cargo build --verbose + +deploy-prod: + stage: deploy + script: + - echo "Let's launch!" + environment: production From 469d3820e28d4f1689b005af60c29e1ee6408df5 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 19:59:58 -0600 Subject: [PATCH 2/8] fix --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6daa052..b4e6278 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - test - build - - deploy-prod + - deploy test: stage: test @@ -21,8 +21,8 @@ build: script: - cargo build --verbose -deploy-prod: - stage: deploy +deploy: + stage: deploy-prod script: - echo "Let's launch!" environment: production From 3537cce31d2e663f33eb0ab709ea8db6101d6f8b Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 20:00:35 -0600 Subject: [PATCH 3/8] fix --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b4e6278..3242832 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,7 @@ build: - cargo build --verbose deploy: - stage: deploy-prod + stage: deploy script: - echo "Let's launch!" environment: production From 563cfda91d792bb90ebe7e8a876acddbfb8b007d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 20:08:48 -0600 Subject: [PATCH 4/8] remove deploy and testing artifacts --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3242832..46ba0c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,9 +20,6 @@ build: - apt install -y libfdisk-dev libclang-19-dev script: - cargo build --verbose - -deploy: - stage: deploy - script: - - echo "Let's launch!" - environment: production + artifacts: + paths: + - builds/ahoneybun/nyxi-installer From bef700b7fc542b84005634dfb3189c0c2adeac8d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 20:11:03 -0600 Subject: [PATCH 5/8] remove deploy and testing artifacts --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46ba0c0..ac00656 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,5 +21,5 @@ build: script: - cargo build --verbose artifacts: - paths: + paths: - builds/ahoneybun/nyxi-installer From 99aca9a464b3765a937fdcedd62d4c140cfac40f Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 20:14:48 -0600 Subject: [PATCH 6/8] testing artifacts --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ac00656..8738ddf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,4 +22,4 @@ build: - cargo build --verbose artifacts: paths: - - builds/ahoneybun/nyxi-installer + - /builds/ahoneybun/nyxi-installer From 562f0dac53dbad71c6f59ff319e74f2988a93d15 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 20:20:45 -0600 Subject: [PATCH 7/8] building release version and upload --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8738ddf..bab0665 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,7 +19,7 @@ build: - apt update -m - apt install -y libfdisk-dev libclang-19-dev script: - - cargo build --verbose + - cargo build --release --verbose artifacts: paths: - - /builds/ahoneybun/nyxi-installer + - /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer From aaeb2136a9a0890c3abafc0a1cba95fc64f76e34 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 20:30:09 -0600 Subject: [PATCH 8/8] chmod the build --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bab0665..bd0d5af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ stages: - test - build - - deploy test: stage: test @@ -20,6 +19,7 @@ build: - apt install -y libfdisk-dev libclang-19-dev script: - cargo build --release --verbose + - chmod +x /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer artifacts: paths: - /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer