Skip to content

Commit

Permalink
Merge pull request #7 from firstbatchxyz/windows-dkn-compute
Browse files Browse the repository at this point in the history
windows dkn-compute binaries
  • Loading branch information
selimseker authored Sep 6, 2024
2 parents c073a45 + d203322 commit 490a45f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 490a45f

Please sign in to comment.