remove templatehaskell #10
Workflow file for this run
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: Mac-CI | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
ghc: ["9.8.2"] | |
cabal: ["3.10.3.0"] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Haskell | |
uses: haskell/actions/setup@v1 | |
id: setup-haskell-cabal | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- name: Freeze | |
run: | | |
cabal freeze | |
- name: Cache cabal | |
uses: actions/cache@v2 | |
id: cache-cabal | |
with: | |
path: "~/.cabal" | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('/Users/runner/work/zwirn-loom/zwirn-loom/app') }}-a | |
- name: Cache dist | |
uses: actions/cache@v2 | |
id: cache-bin | |
with: | |
path: "/dist-newstyle/" | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('/Users/runner/work/zwirn-loom/zwirn-loom/app') }}-b | |
- name: cabal update and build | |
run: | | |
cabal update | |
cabal v2-build --enable-static --disable-static --enable-executable-stripping | |
- name: make directory | |
run: mkdir build | |
- name: move executable | |
run: mv dist-newstyle/build/x86_64-osx/ghc-${{ matrix.ghc }}/zwirn-loom-0.1.0/x/zwirn-loom/build/zwirn-loom/zwirn-loom build/zwirn-loom | |
- name: move static | |
run: cp -R static build/static | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: electron forge | |
run: | | |
npm install --save-dev @electron-forge/cli | |
npx electron-forge import | |
npm run make | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: out/make/zip/darwin/*/*.zip |