build on platforms #7
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Nim | |
| uses: alaviss/setup-nim@0.1.1 | |
| with: | |
| version: devel | |
| path: 'nimedit' | |
| - name: Nim version | |
| run: nim --version | |
| - name: install deps (Linux only) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt update | |
| sudo apt install libx11-dev libxft-dev fonts-freefont-ttf fonts-dejavu-core | |
| - name: Build | |
| run: | | |
| cd nimedit | |
| nim c -r tests/tester.nim |