Skip to content

Commit

Permalink
Merge pull request #2 from arturo-lang/upgrade-to-nim-2.0.8
Browse files Browse the repository at this point in the history
Upgrade to Nim 2.0.8
  • Loading branch information
drkameleon authored Jul 4, 2024
2 parents 91d9f37 + 58c6005 commit f1ed6fa
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ runs:
- name: Checkout Arturo repo
uses: actions/checkout@v4
with:
repository: arturo-lang/arturo
submodules: recursive
path: arturo
ref: ${{ inputs.src }}
Expand Down Expand Up @@ -78,12 +79,13 @@ runs:
if: runner.os == 'Linux'
uses: jiro4989/setup-nim-action@v1
with:
nim-version: '2.0.4'
nim-version: '2.0.8'
repo-token: ${{ inputs.token }}

- name: Install Nim (macOS)
if: runner.os == 'macOS'
run: |
brew update
brew install nim
shell: bash

Expand All @@ -93,11 +95,11 @@ runs:
mkdir dist
mkdir nim
curl -L https://nim-lang.org/download/dlls.zip -o dist/dlls.zip
curl -L https://nim-lang.org/download/nim-2.0.4_x64.zip -o dist/nim.zip
curl -L https://nim-lang.org/download/nim-2.0.8_x64.zip -o dist/nim.zip
7z x dist/dlls.zip -obin
7z x dist/nim.zip -onim
export PATH="${{ github.workspace }}/nim/nim-2.0.4/bin":$PATH
export PATH="${{ github.workspace }}/nim/nim-2.0.8/bin":$PATH
cd arturo
./build.nims build --mode ${{ inputs.mode }} --log
Expand All @@ -114,13 +116,13 @@ runs:
mkdir nim
curl -L https://nim-lang.org/download/dlls.zip -o dist/dlls.zip
curl -L https://arturo-lang.s3.amazonaws.com/extra-dlls.zip -o dist/extradlls.zip
curl -L https://nim-lang.org/download/nim-2.0.4_x64.zip -o dist/nim.zip
curl -L https://nim-lang.org/download/nim-2.0.8_x64.zip -o dist/nim.zip
7z x dist/dlls.zip -obin
7z x dist/extradlls.zip -obin
7z x dist/nim.zip -onim
cp arturo/src/extras/webview/deps/dlls/x64/*.dll bin
export PATH="${{ github.workspace }}/nim/nim-2.0.4/bin":$PATH
export PATH="${{ github.workspace }}/nim/nim-2.0.8/bin":$PATH
cd arturo
./build.nims build --mode ${{ inputs.mode }} --log
Expand Down Expand Up @@ -194,4 +196,4 @@ runs:
./build.nims --install --mode full --arch ${{ inputs.arch }} --log
echo "$HOME/.arturo/bin" >> $GITHUB_PATH
cd ..
shell: bash
shell: bash

0 comments on commit f1ed6fa

Please sign in to comment.