Skip to content

Commit

Permalink
Switch to pulling binary release
Browse files Browse the repository at this point in the history
  • Loading branch information
PMunch committed Jun 10, 2024
1 parent 8357700 commit 045819e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,15 @@ jobs:
- uses: actions/checkout@v2
- name: Build binary
run: |
git config --global --add safe.directory /__w/choosenim/choosenim
CHOOSENIM_DIR=`pwd`
# checking out and compiling nim last stable from git tag
mkdir -p nimDir
STABLE_NIM=`curl -sSL http://nim-lang.org/channels/stable | xargs`
git clone --depth 1 --branch v$STABLE_NIM https://github.com/nim-lang/Nim.git nimDir
cd nimDir
. ci/funs.sh && nimBuildCsourcesIfNeeded CC=gcc ucpu=amd64
bin/nim c koch
./koch boot -d:release
./koch toolsnonimble
./koch --latest nimble
PATH=$PATH:`pwd`/bin
wget https://nim-lang.org/download/nim-$STABLE_NIM-linux_x64.tar.xz
tar -xvJf nim-$STABLE_NIM.tar.xz
NIMPATH=`pwd`/nim-$STABLE_NIM/bin
PATH=$PATH:$NIMPATH
# compile choosenim
cd $CHOOSENIM_DIR
nimble install -y
nimble build
nimble build --path:$NIMPATH
ls bin/*
- name: Upload binaries to release/tag
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit 045819e

Please sign in to comment.