Skip to content

rm nimble.paths (where did it come from??) #111

rm nimble.paths (where did it come from??)

rm nimble.paths (where did it come from??) #111

Workflow file for this run

name: Binaries
on:
push:
branches:
- master
- release
tags:
- "v*"
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- os: linux
name: linux_x64
- os: linux
name: linux_x32
- os: linux
name: linux_arm64
- os: linux
name: linux_armv7l
- os: macosx
name: macosx_x64
- os: macosx
name: macosx_arm64
- os: windows
name: windows_x64
include:
- target:
os: linux
builder: ubuntu-20.04
- target:
os: macosx
name: macosx_x64
builder: macos-13
- target:
os: macosx
name: macosx_arm64
builder: macos-14
- target:
os: windows
builder: windows-2019
defaults:
run:
shell: bash
name: Release '${{ matrix.target.name }}'
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nimble
uses: nim-lang/setup-nimble-action@v1
with:
nimble-version: '0.16.4'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build nph
run: |
nimble build -d:release
- name: Create archive
run: |
tar -c -z -v -f nph-${{ matrix.target.name }}.tar.gz `ls nph{,.exe} 2>/dev/null || true`
- name: Upload the binaries
uses: actions/upload-artifact@v4
with:
name: nph-${{ matrix.target.name }}.tar.gz
path: nph-${{ matrix.target.name }}.tar.gz
create-github-release:
name: Create Github Release
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artefacts
uses: actions/download-artifact@v4
- name: Clean up prerelease
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: |
gh release delete "prerelease" --cleanup-tag --yes --repo $GITHUB_REPOSITORY || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: Continuous prerelease
artifacts: "*/*"
allowUpdates: true
prerelease: true
tag: prerelease
- uses: ncipollo/release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
name: nph ${{github.ref}}
artifacts: "*/*"
allowUpdates: false
- name: Delete artefacts
uses: geekyeggo/delete-artifact@v2
with:
failOnError: false
name: "nph-*"