From d2033220ae696f2286ecaed3e54128acd897cda8 Mon Sep 17 00:00:00 2001 From: selimseker Date: Sat, 7 Sep 2024 01:44:55 +0300 Subject: [PATCH] add windows dkn-compute binaries to assets --- .github/workflows/build_and_publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 8cd2831..ad659db 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -22,7 +22,7 @@ jobs: - { runner: macos-latest, goos: darwin, osname: macOS, arch: arm64, tags: netcgo } - { runner: ubuntu-latest, goos: linux, osname: linux, arch: amd64, env: CGO_ENABLED=0 } - { runner: ubuntu-latest, goos: linux, osname: linux, arch: arm64, env: CGO_ENABLED=0 } - # - { runner: ubuntu-latest, goos: windows, osname: windows, arch: amd64, env: CGO_ENABLED=0, extension: ".exe" } + - { runner: ubuntu-latest, goos: windows, osname: windows, arch: amd64, env: CGO_ENABLED=0, extension: ".exe" } # - { runner: ubuntu-latest, goos: windows, osname: windows, arch: arm64, env: CGO_ENABLED=0, extension: ".exe" } steps: @@ -51,7 +51,7 @@ jobs: mkdir node_binary cd node_binary echo "Downloading dkn-compute-binary-${{ matrix.osname }}-${{ matrix.arch }}" - if curl -L -o dkn-compute-binary https://github.com/firstbatchxyz/dkn-compute-node/releases/latest/download/dkn-compute-binary-${{ matrix.osname }}-${{ matrix.arch }}; then + if curl -L -o dkn-compute-binary${{ matrix.extension }} https://github.com/firstbatchxyz/dkn-compute-node/releases/latest/download/dkn-compute-binary-${{ matrix.osname }}-${{ matrix.arch }}${{ matrix.extension }}; then echo "Download completed." ls else @@ -66,14 +66,14 @@ jobs: ZIP_NAME: dkn-compute-launcher-${{ matrix.osname }}-${{ matrix.arch }} run: | mkdir $FOLDER_NAME - # copy the binary + # copy launcher binary cp ./dkn-compute-launcher${{ matrix.extension }} $FOLDER_NAME/dkn-compute-launcher${{ matrix.extension }} # download .env.example and save it as .env curl -o $FOLDER_NAME/.env https://raw.githubusercontent.com/firstbatchxyz/dkn-compute-node/master/.env.example - # copy exe to zip folder - cp ./node_binary/dkn-compute-binary $FOLDER_NAME/dkn-compute + # copy dkn-compute binary + cp ./node_binary/dkn-compute-binary${{ matrix.extension }} $FOLDER_NAME/dkn-compute zip -r $ZIP_NAME.zip $FOLDER_NAME