Support nim v1.6.x #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build NimWC release 👑 | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
#runs-on: ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
#- windows-latest | |
#- macOS-latest | |
version: | |
- 1.6.18 | |
# - stable | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jiro4989/setup-nim-action@master | |
with: | |
nim-version: ${{ matrix.version }} | |
- name: Print Nim version | |
run: nim -v | |
- name: Print Nimble version | |
run: nimble -v | |
- name: Nimble Refresh | |
run: nimble -y refresh | |
- name: Nimble Install dependencies | |
run: nimble -y install --depsOnly | |
- name: Build binaries | |
run: | | |
nimble build -d:release | |
cp config/config_default.cfg config/config.cfg | |
./nimwc --quitAfterCompile | |
- name: Archive Release | |
uses: papeloto/action-zip@v1 | |
with: | |
files: config/ nimwcpkg/ plugins/ public/ nimwc nimwc.nim nimwc.nim.cfg nimwc.nimble | |
dest: release-${{ matrix.os }}.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: release-${{ matrix.os }}.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |