Skip to content

Speed-up build

Speed-up build #38

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: json2csv
asset_name: json2csv-linux-amd64
- os: windows-latest
artifact_name: json2csv.exe
asset_name: json2csv-windows-amd64.exe
- os: macos-13
artifact_name: json2csv
asset_name: json2csv-macos-amd64
- os: macos-latest
artifact_name: json2csv
asset_name: json2csv-macos-arm
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-version: 'latest'
stack-setup-ghc: false
- run: stack --local-bin-path target install
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}