diff options
-rw-r--r-- | .github/workflows/release-candidate.yml | 87 |
1 files changed, 44 insertions, 43 deletions
diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml index 3edbaa624..9f3e26d6f 100644 --- a/.github/workflows/release-candidate.yml +++ b/.github/workflows/release-candidate.yml @@ -93,48 +93,49 @@ jobs: name: windows-release-candidate path: windows-release-candidate - macos: +# We now build for macos on travis-ci.com +# macos: - runs-on: macOS-10.15 +# runs-on: macOS-10.15 - steps: - - uses: actions/checkout@v1 - - name: Install stack - run: | - curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz -o stack.tar.gz - tar xzvf stack.tar.gz --strip-components=1 'stack*/stack' - - name: Install dependencies - run: | - ./stack update - ./stack build --dependencies-only pandoc pandoc-citeproc - - name: Create macOS package - run: | - export VERSION=$(grep '^[Vv]ersion:' pandoc.cabal | awk '{print $$2;}') - export BASEDIR=$(pwd) - export ARTIFACTS=${BASEDIR}/macos-release-candidate - export RESOURCES=${ARTIFACTS}/Resources - export ROOT=${ARTIFACTS}/pandoc - export DEST=${ROOT}/usr/local - export ME=$(whoami) - export BASE=pandoc-$VERSION - mkdir -p ${ARTIFACTS} - mkdir -p ${RESOURCES} - mkdir -p ${DEST}/bin - mkdir -p ${DEST}/share/man/man1 - ./stack build pandoc pandoc-citeproc - for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${DEST}/bin/; done - strip ${DEST}/bin/pandoc - strip ${DEST}/bin/pandoc-citeproc - cp man/pandoc.1 ${DEST}/share/man/man1/pandoc.1 - ${DEST}/bin/pandoc-citeproc --man > \ - $DEST/share/man/man1/pandoc-citeproc.1 - ${DEST}/bin/pandoc -t html5 -s COPYING.md -Vpagetitle=License \ - -o ${RESOURCES}/license.html - chown -R $ME:staff ${ROOT} - sed -e "s/PANDOCVERSION/${VERSION}/" macos/distribution.xml.in > ${ARTIFACTS}/distribution.xml - cp macos/Makefile ${ARTIFACTS}/ - echo ${VERSION} > ${ARTIFACTS}/version.txt - - uses: actions/upload-artifact@v2 - with: - name: macos-release-candidate - path: macos-release-candidate +# steps: +# - uses: actions/checkout@v1 +# - name: Install stack +# run: | +# curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz -o stack.tar.gz +# tar xzvf stack.tar.gz --strip-components=1 'stack*/stack' +# - name: Install dependencies +# run: | +# ./stack update +# ./stack build --dependencies-only pandoc pandoc-citeproc +# - name: Create macOS package +# run: | +# export VERSION=$(grep '^[Vv]ersion:' pandoc.cabal | awk '{print $$2;}') +# export BASEDIR=$(pwd) +# export ARTIFACTS=${BASEDIR}/macos-release-candidate +# export RESOURCES=${ARTIFACTS}/Resources +# export ROOT=${ARTIFACTS}/pandoc +# export DEST=${ROOT}/usr/local +# export ME=$(whoami) +# export BASE=pandoc-$VERSION +# mkdir -p ${ARTIFACTS} +# mkdir -p ${RESOURCES} +# mkdir -p ${DEST}/bin +# mkdir -p ${DEST}/share/man/man1 +# ./stack build pandoc pandoc-citeproc +# for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${DEST}/bin/; done +# strip ${DEST}/bin/pandoc +# strip ${DEST}/bin/pandoc-citeproc +# cp man/pandoc.1 ${DEST}/share/man/man1/pandoc.1 +# ${DEST}/bin/pandoc-citeproc --man > \ +# $DEST/share/man/man1/pandoc-citeproc.1 +# ${DEST}/bin/pandoc -t html5 -s COPYING.md -Vpagetitle=License \ +# -o ${RESOURCES}/license.html +# chown -R $ME:staff ${ROOT} +# sed -e "s/PANDOCVERSION/${VERSION}/" macos/distribution.xml.in > ${ARTIFACTS}/distribution.xml +# cp macos/Makefile ${ARTIFACTS}/ +# echo ${VERSION} > ${ARTIFACTS}/version.txt +# - uses: actions/upload-artifact@v2 +# with: +# name: macos-release-candidate +# path: macos-release-candidate |