From b170b4eafc14cb38742f8eaf6b02f7e9378f442a Mon Sep 17 00:00:00 2001 From: Harsh Singh <64768386+harshdoesdev@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:04:55 +0530 Subject: [PATCH] Revert "removing controller stuff and .d files from release (#1461)" This reverts commit d35198a63f0dbed1b7d9fe413f1aef6bda33b399. --- .github/workflows/release.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17843fd0a4..b1af5035d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,16 @@ jobs: - uses: actions/upload-artifact@v2 with: name: linux_musl_x86_64 - path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }} + path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}* + - name: Build-musl + uses: gmiam/rust-musl-action@9e6a37bf27ecfffb6b92240ea276bea5487fa15d + continue-on-error: false + with: + args: cargo build --target $BUILD_TARGET --release --features controller + - uses: actions/upload-artifact@v2 + with: + name: fastn_controller_linux_musl_x86_64 + path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}* release-windows: name: Build for Windows runs-on: windows-latest @@ -122,6 +131,10 @@ jobs: with: name: linux_musl_x86_64 path: ~/download/linux_musl + - uses: actions/download-artifact@v2 + with: + name: fastn_controller_linux_musl_x86_64 + path: ~/download/fastn_controller_linux_musl - uses: actions/download-artifact@v2 with: name: windows_x64_latest @@ -136,13 +149,16 @@ jobs: mv ~/download/windows/windows_x64_installer.exe ~/download/windows/fastn_setup.exe mv ~/download/macos/fastn ~/download/macos/fastn_macos_x86_64 mv ~/download/linux_musl/fastn ~/download/linux_musl/fastn_linux_musl_x86_64 + mv ~/download/linux_musl/fastn.d ~/download/linux_musl/fastn_linux_musl_x86_64.d + mv ~/download/fastn_controller_linux_musl/fastn ~/download/fastn_controller_linux_musl/fastn_controller_linux_musl_x86_64 + mv ~/download/fastn_controller_linux_musl/fastn.d ~/download/fastn_controller_linux_musl/fastn_controller_linux_musl_x86_64.d - name: Update .github/RELEASE_TEMPLATE.md run: | sed -i "s/GITHUB_SHA/${GITHUB_SHA}/g" .github/RELEASE_TEMPLATE.md sed -i "s/DATE/$(date)/g" .github/RELEASE_TEMPLATE.md - uses: ncipollo/release-action@v1 with: - artifacts: "~/download/windows/fastn_windows_x86_64.exe,~/download/windows/fastn_setup.exe,~/download/macos/fastn_macos_x86_64,~/download/linux_musl/fastn_linux_musl_x86_64" + artifacts: "~/download/windows/fastn_windows_x86_64.exe,~/download/windows/fastn_setup.exe,~/download/macos/fastn_macos_x86_64,~/download/linux_musl/fastn_linux_musl_x86_64,~/download/linux_musl/fastn_linux_musl_x86_64.d,~/download/fastn_controller_linux_musl/fastn_controller_linux_musl_x86_64,~/download/fastn_controller_linux_musl/fastn_controller_linux_musl_x86_64.d" generateReleaseNotes: true token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.event.inputs.releaseTag }}