Skip to content

Update deprecated GitHub Actions versions #11

Update deprecated GitHub Actions versions

Update deprecated GitHub Actions versions #11

Workflow file for this run

name: CI
on:
push:
paths:
- .github/workflows/ci.yaml
- ./**/*
jobs:
build-sqlitedav:
strategy:
matrix:
os: [ubuntu-24.04, macos-15]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10 # Necessary for git describe --tags
- name: Fetch tags
# Necessary according to
# https://github.com/actions/checkout/issues/290
run: |
git fetch --tags --force
- if: ${{startsWith(matrix.os, 'ubuntu')}}
name: Install deps
run: |
sudo apt-get update -y && \
sudo apt-get install -y libmagic-dev
- name: Setup Stack
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-no-global: true
- name: Cache Stack build files
uses: actions/cache@v4
with:
path: |
~/.stack
.stack-work
key: >-
${{ runner.os }}-stack-${{
hashFiles('stack.yaml.lock', 'package.yaml') }}
restore-keys: |
${{runner.os}}-stack
- name: Test
run: |
stack test --ghc-options="-O2"
- name: Install
run: |
stack install --ghc-options="-O2"
- name: Upload ${{ runner.os }} Release
uses: actions/upload-artifact@v4
with:
path: ~/.local/bin/sqlitedav
name: sqlitedav_${{ runner.os }}_${{ runner.arch }}