Skip to content

refactor: made some types local #498

refactor: made some types local

refactor: made some types local #498

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ trunk ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: 'stable'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update Nimble
run: nimble install -y nimble
- name: Debug build
run: nimble debug -y
- name: Install nimalyzer
run: nimble install -y nimalyzer@"> 0.7"
- name: Check with Nimalyzer
run: nimalyzer tools/nimalyzer.cfg
- name: Upload the log
uses: actions/upload-artifact@v3
if: failure()
with:
name: nimalyzer.log
path: nimalyzer.log
- name: Run tests
run: nimble test -y
build_linux:
needs: tests
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: 'stable'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update Nimble
run: nimble install -y nimble
- name: Release build
run: nimble -y release
build_freebsd:
needs: tests
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Release build
uses: cross-platform-actions/[email protected]
with:
shell: sh
operating_system: freebsd
architecture: x86-64
version: '13.2'
run: |
sudo sed -i '' -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
sudo pkg install -y git nimble
export PATH=$PATH:/home/runner/.nimble/bin:/usr/local/nim/bin
nimble -y release