From ae799c97449f122c7787a7cf85bac90598a96da6 Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 11:51:36 +0300 Subject: [PATCH 1/9] Fix: Use cross for cross compilation --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abfd121..17cb94a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,9 @@ jobs: target: ${{ matrix.target }} - name: Build release binary - run: cargo build --release --target ${{ matrix.target }} + run: | + cargo install cross --git https://github.com/cross-rs/cross && \ + cross build --release --target ${{ matrix.target }} - name: Rename binary run: | From 80d69fa4a06ea4157191fffd5fb07cff8c99d6ce Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 12:27:55 +0300 Subject: [PATCH 2/9] Fix: Use cross only for arm64 linux --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17cb94a..3db7411 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,8 +46,12 @@ jobs: - name: Build release binary run: | - cargo install cross --git https://github.com/cross-rs/cross && \ - cross build --release --target ${{ matrix.target }} + if [[ "${{ matrix.target }}" == "aarch64-unknown-linux-gnu" ]]; then + cargo install cross --git https://github.com/cross-rs/cross && \ + cross build --release --target ${{ matrix.target }} + else + cargo build --release --target ${{ matrix.target }} + fi - name: Rename binary run: | From a8c71ad96c0f1189a74f80591dcba61cd69bc5a5 Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 12:38:31 +0300 Subject: [PATCH 3/9] Fix: Use cross only for arm64 linux --- .github/workflows/release.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3db7411..0e06a3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,14 +44,15 @@ jobs: profile: minimal target: ${{ matrix.target }} - - name: Build release binary + - name: Build release binary (ARM Linux native) + if: matrix.target == 'aarch64-unknown-linux-gnu' run: | - if [[ "${{ matrix.target }}" == "aarch64-unknown-linux-gnu" ]]; then - cargo install cross --git https://github.com/cross-rs/cross && \ - cross build --release --target ${{ matrix.target }} - else - cargo build --release --target ${{ matrix.target }} - fi + cargo install cross --git https://github.com/cross-rs/cross + cross build --release --target ${{ matrix.target }} + + - name: Build release binary (cross-compile) + if: matrix.target != 'aarch64-unknown-linux-gnu' + run: cargo build --release --target ${{ matrix.target }} - name: Rename binary run: | From bf658a0c18b0d1451cffd881a4b443f5ff6fc87a Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 12:48:01 +0300 Subject: [PATCH 4/9] Chore: Exclude hidden folders --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e06a3b..a468e45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Package source code - run: tar czvf vipyrdocs-source.tar.gz . + run: tar czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.vscode' --exclude='.idea' . - name: Upload source tarball uses: actions/upload-artifact@v4 with: From e5ab64e646feb0afdf3f91d89cf4d6b85c1dfbee Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 12:51:54 +0300 Subject: [PATCH 5/9] Chore: Exclude hidden folders --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a468e45..54597b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Package source code - run: tar czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.vscode' --exclude='.idea' . + run: tar czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . - name: Upload source tarball uses: actions/upload-artifact@v4 with: From eb0b2cceb400158f9899c8347414c41b4a063c4a Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 12:57:15 +0300 Subject: [PATCH 6/9] Chore: Fix tar --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54597b1..7661db8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Package source code - run: tar czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . + run: tar --warning=no-file-changed czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . - name: Upload source tarball uses: actions/upload-artifact@v4 with: From 7b5c773a313527ab09fde6c37456babe55ed052f Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 13:47:53 +0300 Subject: [PATCH 7/9] Chore: Fix tar --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7661db8..7b5765b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Package source code - run: tar --warning=no-file-changed czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . + run: tar --warning=no-file-changed -czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . - name: Upload source tarball uses: actions/upload-artifact@v4 with: From 0a14696e7bb5476b24037334659091ed6675e03c Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 14:07:02 +0300 Subject: [PATCH 8/9] Chore: Debug tar --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b5765b..ff36353 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Package source code - run: tar --warning=no-file-changed -czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . + run: tar -v --warning=no-file-changed -czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . - name: Upload source tarball uses: actions/upload-artifact@v4 with: From 81e81c3065283ff7a3a93570d9e13fca15f5bda6 Mon Sep 17 00:00:00 2001 From: Ali Ugur Date: Fri, 28 Nov 2025 14:17:25 +0300 Subject: [PATCH 9/9] Chore: Use tar action --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff36353..a65ae8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,17 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Package source code - run: tar -v --warning=no-file-changed -czvf vipyrdocs-source.tar.gz --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='.idea' . + uses: a7ul/tar-action@v1.2.0 + with: + command: c + cwd: ./ + files: | + src/ + Cargo.toml + Cargo.lock + README.md + outPath: vipyrdocs-source.tar.gz + - name: Upload source tarball uses: actions/upload-artifact@v4 with: