aboutsummaryrefslogtreecommitdiff
path: root/.cirrus.yml
blob: c133c0eebf71f814ad9eaf67ef05e1f01ff994ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
task:
  name: macos_arm64
  trigger_type: manual
  timeout_in: 90m
  macos_instance:
    image: ghcr.io/cirruslabs/macos-monterey-base:latest
  brew_script: brew install cabal-install
  cabal_store_cache:
    folder: ~/.cabal/store
    fingerprint_key: macos_2023_03_11
  deps_script:
    - cabal update
    - cabal build pandoc-cli -fembed_data_files -fserver -flua --dependencies-only
  upload_caches:
    - cabal_store
  install_script: |
    sh macos/make_macos_release.sh
    ls
    zip -r macos-release-candidate.zip macos-release-candidate
  artifacts:
    path: macos-release-candidate.zip

task:
  name: linux_arm64
  trigger_type: manual
  timeout_in: 90m
  arm_container:
    image: registry.gitlab.b-data.ch/ghc/ghc4pandoc:9.4.4
    cpu: 4
    memory: 12G
  cabal_store_cache:
    folder: ~/.cabal/store
    fingerprint_key: linux_arm64_2023_03_11
  build_script:
    - cabal update
    - cabal install -f-export-dynamic -fembed_data_files -fserver -flua --enable-executable-static -j4 --ghc-options="-j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread" pandoc-cli --install-method=copy --overwrite-policy=always --installdir=.
  upload_caches:
    - cabal_store
  package_script:
    - ARTIFACTS=./linux/artifacts sh linux/make_artifacts.sh
  artifacts:
    path: ./linux/artifacts/*