trigger ci #253
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: Nim | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# os: [ubuntu-latest, macos-latest, windows-latest] | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@main | |
- if: runner.os != 'Windows' | |
name: cache nimble | |
id: cache-nimble | |
uses: actions/cache@main | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }} | |
restore-keys: | | |
${{ runner.os }}-nimble- | |
- uses: jiro4989/setup-nim-action@v2 | |
with: | |
nim-version: 2.0.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- if: runner.os == 'Linux' | |
name: prepare | |
run: | | |
sudo apt-get update | |
sudo apt-get install libglu1-mesa-dev mesa-common-dev xorg-dev libasound-dev | |
- name: build | |
run: | | |
nimble install -Y | |
nimble build_all |