├── .gitignore ├── delete.py ├── README.md ├── travis-bin.Rproj ├── .github ├── scripts │ └── index.sh └── workflows │ └── build-bin.yml └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .Rproj.user 2 | .Rhistory 3 | .RData 4 | -------------------------------------------------------------------------------- /delete.py: -------------------------------------------------------------------------------- 1 | import json, sys, os 2 | d = json.load(sys.stdin)['assets'] 3 | for a in d: 4 | if a['name'].startswith(sys.argv[1]): 5 | os.system('curl -u yihui:' + os.getenv('GH_TOKEN') + ' -X DELETE ' + a['url']) 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **NOTE**: this repo is no longer maintained. You can find and download the nightly builds by yourself: 2 | 3 | - Pandoc: 4 | - TinyTeX: 5 | -------------------------------------------------------------------------------- /travis-bin.Rproj: -------------------------------------------------------------------------------- 1 | Version: 1.0 2 | 3 | RestoreWorkspace: Default 4 | SaveWorkspace: Default 5 | AlwaysSaveHistory: Default 6 | 7 | EnableCodeIndexing: Yes 8 | UseSpacesForTab: Yes 9 | NumSpacesForTab: 2 10 | Encoding: UTF-8 11 | 12 | RnwWeave: knitr 13 | LaTeX: pdfLaTeX 14 | 15 | AutoAppendNewline: Yes 16 | StripTrailingWhitespace: Yes 17 | -------------------------------------------------------------------------------- /.github/scripts/index.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 'Pre-built binaries of Pandoc and TeXLive for Travis' 4 | echo '

Available binaries (Github repo):

'
 7 | cat dist/.pandoc-version.txt
 8 | echo
 9 | cat dist/.tinytex-version.txt
10 | echo '

Last updated on ' 11 | date 12 | echo '

' 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014-2015 Yihui Xie 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /.github/workflows/build-bin.yml: -------------------------------------------------------------------------------- 1 | on: 2 | schedule: 3 | # run daily after pandoc nightly build 4 | - cron: '55 8 * * *' 5 | workflow_dispatch: 6 | 7 | name: build-bin 8 | 9 | jobs: 10 | build-pandoc: 11 | name: Pandoc 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Get pandoc artifacts list 15 | id: artifacts 16 | uses: actions/github-script@v3 17 | with: 18 | script: | 19 | return await github.actions.listArtifactsForRepo({ 20 | owner: "jgm", 21 | repo: "pandoc", 22 | }) 23 | - name: Identify last nightly build for linux 24 | id: latest-artifact 25 | run: | 26 | echo "::set-output name=artifactId::$(echo '${{steps.artifacts.outputs.result}}' | jq -r '.data.artifacts | map(select(.name == "nightly-linux")) | .[0].id')" 27 | - name: Get artifact download url 28 | id: artifact 29 | uses: actions/github-script@v3 30 | with: 31 | script: | 32 | return await github.actions.downloadArtifact({ 33 | owner: "jgm", 34 | repo: "pandoc", 35 | artifact_id: ${{ steps.latest-artifact.outputs.artifactId }}, 36 | archive_format: "zip", 37 | }); 38 | - name: Download artifact 39 | run: | 40 | curl -L -o pandoc-linux.zip $(echo '${{steps.artifact.outputs.result}}' | jq -r '.url') 41 | - name: Pandoc version 42 | run: | 43 | unzip -j -d ~/bin pandoc-linux.zip 44 | chmod +x ~/bin/pandoc 45 | ~/bin/pandoc --version > .pandoc-version.txt 46 | cat .pandoc-version.txt 47 | - name: Upload as artifact 48 | uses: actions/upload-artifact@v2 49 | with: 50 | name: binaries 51 | path: | 52 | pandoc-linux.zip 53 | .pandoc-version.txt 54 | retention-days: 5 55 | 56 | build-tinytex: 57 | name: TinyTeX / TeX Live 58 | runs-on: ubuntu-latest 59 | steps: 60 | - name: Download and install TinyTeX 61 | run: | 62 | wget -q -O tinytex.tar.gz https://yihui.org/tinytex/TinyTeX-1.tar.gz 63 | tar xzf tinytex.tar.gz -C $HOME 64 | cd $HOME/.TinyTeX/bin/* 65 | ./tlmgr option sys_bin ~/bin 66 | ./tlmgr path add 67 | echo "~/bin" >> $GITHUB_PATH 68 | - name: TinyTeX version 69 | run: | 70 | echo $PATH 71 | tlmgr --version > .tinytex-version.txt 72 | cat .tinytex-version.txt 73 | - name: Upload as artifact 74 | uses: actions/upload-artifact@v2 75 | with: 76 | name: binaries 77 | path: | 78 | tinytex.tar.gz 79 | .tinytex-version.txt 80 | retention-days: 5 81 | - name: build texlive-local-deb 82 | run: | 83 | sudo apt-get install -y equivs 84 | wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/debian-control-texlive-in.txt 85 | equivs-build debian-* 86 | mv texlive-local*.deb texlive-local.deb 87 | - name: Upload as artifact 88 | uses: actions/upload-artifact@v2 89 | with: 90 | name: binaries 91 | path: texlive-local.deb 92 | retention-days: 5 93 | 94 | deploy: 95 | needs: [build-pandoc, build-tinytex] 96 | name: deploy built binary 97 | runs-on: ubuntu-latest 98 | steps: 99 | - uses: actions/checkout@v2 100 | - uses: actions/download-artifact@v2 101 | with: 102 | name: binaries 103 | path: dist 104 | - name: Run index script 105 | run: ./.github/scripts/index.sh > dist/index.html 106 | shell: bash 107 | - name: Deploy 108 | uses: peaceiris/actions-gh-pages@v3 109 | with: 110 | github_token: ${{ secrets.GITHUB_TOKEN }} 111 | publish_dir: ./dist 112 | cname: travis-bin.yihui.org 113 | user_name: 'github-actions[bot]' 114 | user_email: 'github-actions[bot]@users.noreply.github.com' 115 | force_orphan: true 116 | --------------------------------------------------------------------------------