Skip to content

Nim Build and Release #24

Nim Build and Release

Nim Build and Release #24

Workflow file for this run

name: Nim Build and Release
on:
workflow_dispatch:
inputs:
version:
description: 'Tag version'
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.event.inputs.version }}
release_name: Release v${{ github.event.inputs.version }}
draft: false
prerelease: false
build:
strategy:
matrix:
os: [windows-latest,macos-latest]
runs-on: ${{matrix.os}}
env:
out-ext: ${{ matrix.os == windows-latest && '.exe' || '.sh' }}

Check failure on line 34 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Nim Build and Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 34, Col: 16): Unrecognized named-value: 'windows-latest'. Located at position 14 within expression: matrix.os == windows-latest && '.exe' || '.sh'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: '1.6.10'
- name: Install reqs
run: nimble install -y
- name: tmp dir
run: mkdir tmp
- name: Build
id: build
run: |
nim compile --define:release --outdir:. --out:DitakticTei${{ env.out-ext }} src/tei.nim
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./DitakticTei${{ env.out-ext }}
asset_name: DitakticTei${{ env.out-ext }}
asset_content_type: application/octet-stream