pandoc/.cirrus.yml
2024-02-05 09:04:30 -08:00

76 lines
2.1 KiB
YAML

task:
name: macos_arm64
alias: macos_arm64
trigger_type: manual
timeout_in: 90m
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
brew_script:
- brew update
- brew install ghc@9.6 cabal-install
env:
PATH: /opt/homebrew/opt/ghc@9.6/bin:${PATH}
cabal_store_cache:
folder: ~/.cabal/store
fingerprint_key: macos_2023_03_12
deps_script:
- cabal update
- cabal build all -fembed_data_files -fserver -flua --dependencies-only
upload_caches:
- cabal_store
install_script:
- sh macos/make_macos_release.sh
macos_arm64_artifacts:
path: ./macos-arm64/**
task:
name: linux_arm64
alias: linux_arm64
trigger_type: manual
timeout_in: 90m
arm_container:
image: quay.io/benz0li/ghc-musl:9.6
cpu: 4
memory: 12G
env:
CABALOPTS: -f-export-dynamic -fembed_data_files -fserver -flua --enable-executable-static -j4
GHCOPTS: -j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread
cabal_store_cache:
folder: ~/.cabal/store
fingerprint_key: linux_arm64_2023_03_11
deps_script:
- cabal update
- cabal build --dependencies-only $CABALOPTS --ghc-options="$GHCOPTS" pandoc-cli
upload_caches:
- cabal_store
package_script:
- cabal freeze && cat cabal.project.freeze
- bash linux/make_artifacts.sh
linux_arm64_artifacts:
path: ./linux-arm64/**
task:
name: linux_amd64
alias: linux_amd64
trigger_type: manual
timeout_in: 90m
container:
image: quay.io/benz0li/ghc-musl:9.6
cpu: 4
memory: 12G
env:
CABALOPTS: -f-export-dynamic -fembed_data_files -fserver -flua --enable-executable-static -j4
GHCOPTS: -j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread
cabal_store_cache:
folder: ~/.cabal/store
fingerprint_key: linux_amd64_2023_03_12
deps_script:
- cabal update
- cabal build --dependencies-only $CABALOPTS --ghc-options="$GHCOPTS" pandoc-cli
upload_caches:
- cabal_store
package_script:
- cabal freeze && cat cabal.project.freeze
- bash linux/make_artifacts.sh
linux_amd64_artifacts:
path: ./linux-amd64/**