From 14ddbfaaaa50952a653c68590c8091b1bb65d87c Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 16:19:35 +0200 Subject: [PATCH 1/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07181c0..4c7241e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,6 @@ name: Compile Rust Code on Release -on: - release: - types: [created] +on: [push] jobs: build: From bc7dfa1cef007a1a97cd45642f29fbbdb12f0597 Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 16:24:50 +0200 Subject: [PATCH 2/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c7241e..ddbcaea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,26 +10,23 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Rust with Alpine - run: | - docker run --rm \ - -v ${{ github.workspace }}:/usr/src/myapp \ - -w /usr/src/myapp \ - rust:alpine \ - sh -c "apk add --no-cache musl-dev && cargo build --release" + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt + + - name: Build in Release Mode + run: cargo build --release - name: Run Tests - run: | - docker run --rm \ - -v ${{ github.workspace }}:/usr/src/myapp \ - -w /usr/src/myapp \ - rust:alpine \ - sh -c "apk add --no-cache musl-dev && cargo test --release" + run: cargo test --release - name: Package Artifacts run: | mkdir -p artifacts - cp target/release/your_executable artifacts/ + cp target/release/wololo artifacts/ - name: Upload Artifacts uses: actions/upload-artifact@v2 From c052452e1958d2f9b7dbcdc594fe7f9e865fa60c Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 17:18:33 +0200 Subject: [PATCH 3/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ddbcaea..3db4888 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,20 +9,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: rustfmt - + - name: Setup Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Build in Release Mode run: cargo build --release - - - name: Run Tests - run: cargo test --release - - name: Package Artifacts run: | mkdir -p artifacts From 3c8c406bb7630158b94674a39e61a53b9c5dbeaf Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 17:24:36 +0200 Subject: [PATCH 4/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3db4888..65f5a60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,17 +2,23 @@ name: Compile Rust Code on Release on: [push] -jobs: - build: - runs-on: ubuntu-latest +on: [push] +jobs: + lint&test: + runs-on: ubuntu-latest + container: + image: rust steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Setup Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Build in Release Mode - run: cargo build --release + # nodejs is required for the checkout action + - run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs + - uses: actions/checkout@v4 + - run: rustup component add rustfmt clippy + - run: cargo fmt -- --check + - run: cargo clippy -- -D warnings + - run: cargo check + - run: cargo test + - run: cargo build --release - name: Package Artifacts run: | mkdir -p artifacts From d173dfb4566d74567cfc37f77ba8df1b889c1961 Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 17:24:50 +0200 Subject: [PATCH 5/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 65f5a60..984d277 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,5 @@ name: Compile Rust Code on Release -on: [push] - - on: [push] jobs: lint&test: From b898faa2d5a0629b129c343fba0b29be8bc01eac Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 17:29:04 +0200 Subject: [PATCH 6/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 984d277..371e310 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,11 +5,11 @@ jobs: lint&test: runs-on: ubuntu-latest container: - image: rust + image: node:alpine steps: # nodejs is required for the checkout action - - run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs - uses: actions/checkout@v4 + - run: apk add curl gcc rustup cargo rust - run: rustup component add rustfmt clippy - run: cargo fmt -- --check - run: cargo clippy -- -D warnings From 0f88f5a537d1d9a653d11cee29a40b13439f10b3 Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 17:32:18 +0200 Subject: [PATCH 7/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 371e310..f13a510 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,8 @@ jobs: container: image: node:alpine steps: - # nodejs is required for the checkout action - uses: actions/checkout@v4 - run: apk add curl gcc rustup cargo rust - - run: rustup component add rustfmt clippy - - run: cargo fmt -- --check - - run: cargo clippy -- -D warnings - run: cargo check - run: cargo test - run: cargo build --release From a3c1ecf4e6b1a02ae56cd3c62095f53a6a26cc4a Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 17:36:57 +0200 Subject: [PATCH 8/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f13a510..54f4f72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,14 +11,9 @@ jobs: - run: apk add curl gcc rustup cargo rust - run: cargo check - run: cargo test - - run: cargo build --release - - name: Package Artifacts - run: | - mkdir -p artifacts - cp target/release/wololo artifacts/ - + - run: cargo build --release - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: rust-release-artifacts - path: artifacts/ + name: wololo-app + path: target/release/wololo From 086e7e4ebb113037f9ea29dd6290c077ebc77410 Mon Sep 17 00:00:00 2001 From: semubico Date: Fri, 11 Jul 2025 17:42:30 +0200 Subject: [PATCH 9/9] Update .github/workflows/test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 54f4f72..c3927a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - run: cargo test - run: cargo build --release - name: Upload Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: wololo-app path: target/release/wololo