Skip to content

Remove windows from CI (for now) #3

Remove windows from CI (for now)

Remove windows from CI (for now) #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
strategy:
fail-fast: false
matrix:
ameba-version: [v1.6.4]
include:
- { os: ubuntu-latest, crystal: latest }
- { os: ubuntu-latest, crystal: nightly }
- { os: macos-latest }
# - { os: windows-latest }
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{matrix.crystal}}
- name: Run Crystal specs
run: crystal spec -p -s
- name: Cache Ameba binary
id: cache-ameba
uses: actions/cache@v3
with:
path: bin/ameba
key: ${{ runner.os }}-ameba-${{ matrix.ameba-version }}-${{ matrix.crystal }}
- name: Build Ameba
if: steps.cache-ameba.outputs.cache-hit != 'true'
run: |
git clone --branch ${{ matrix.ameba-version }} --single-branch https://github.com/crystal-ameba/ameba.git
cd ameba
make bin/ameba CRFLAGS='-Dpreview_mt --release --no-debug'
mkdir -p ../bin
mv bin/ameba ../bin/ameba
cd ..
rm -rf ameba
- name: Run Ameba Linter
run: bin/ameba -c .ameba.yml