This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
Fix warning #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: Compil | |
on: [push] | |
jobs: | |
compil-check-job-run: | |
runs-on: ubuntu-latest | |
outputs: | |
workflows: ${{ steps.filter.outputs.workflows }} | |
src: ${{ steps.filter.outputs.src }} | |
make: ${{ steps.filter.outputs.make }} | |
combined: ${{ steps.filter.outputs.workflows == 'true' || steps.filter.outputs.src == 'true' || steps.filter.outputs.make == 'true' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check modified files need re run | |
id: filter | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
workflows: | |
- '.github/workflows/**' | |
src: | |
- '*.hs' | |
make: | |
- 'Makefile' | |
compil-windows: | |
runs-on: windows-latest | |
needs: [compil-check-job-run] | |
if: needs.compil-check-job-run.outputs.combined | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Haskell | |
uses: haskell-actions/setup@v2 | |
with: | |
enable-stack: true | |
stack-version: 'latest' | |
- name: Install dependencies | |
run: ./scripts/InstallDepsWindows.ps1 | |
- name: Compil | |
run: make | |
compil-linux: | |
runs-on: ubuntu-latest | |
needs: [compil-check-job-run] | |
if: needs.compil-check-job-run.outputs.combined | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Haskell | |
uses: haskell-actions/setup@v2 | |
with: | |
enable-stack: true | |
stack-version: 'latest' | |
- name: Install dependencies | |
run: sudo ./scripts/InstallDepsLinux.bash | |
- name: Compil | |
run: make | |
compil-macos: | |
runs-on: macos-latest | |
needs: [compil-check-job-run] | |
if: needs.compil-check-job-run.outputs.combined | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Haskell | |
uses: haskell-actions/setup@v2 | |
with: | |
enable-stack: true | |
stack-version: 'latest' | |
- name: Install dependencies | |
run: ./scripts/InstallDepsMacOS.zsh | |
- name: Compil | |
run: make |