Bump actions/checkout
to v4
#115
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: test | |
# yamllint disable-line rule:truthy | |
on: | |
- push | |
- pull_request | |
jobs: | |
before: | |
runs-on: ubuntu-latest | |
if: "! contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- run: echo "commit message doesn't contain '[skip ci]'" | |
test: | |
needs: before | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nim-version: | |
- '1.4.8' | |
- '1.6.16' | |
- '2.0.0' | |
- 'devel' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim-version }} | |
- run: nimble install -y | |
- run: nimble test | |
- run: nimble checkExamples | |
i386: | |
needs: before | |
runs-on: ubuntu-latest | |
container: | |
image: i386/ubuntu:bionic | |
strategy: | |
matrix: | |
nim-version: | |
- '1.6.16' | |
- '2.0.0' | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
apt-get update -y | |
apt-get install -y curl gcc g++ git xz-utils util-linux | |
- name: Install Nim | |
run: | | |
mkdir ~/.nim | |
cd ~/.nim | |
curl -sSf https://nim-lang.org/download/nim-${{ matrix.nim-version }}-linux_x32.tar.xz | tar -xJ | |
realpath nim-${{ matrix.nim-version }}/bin >> $GITHUB_PATH | |
whereis nimble | |
- run: | | |
whereis nimble | |
nimble install -y | |
- run: nimble test | |
- run: nimble checkExamples |