summaryrefslogtreecommitdiff
path: root/Build/source/.github/workflows/main.yml
blob: 9ca8705523bc4a4b409d9108c1e32c39a87f4dbe (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# .github/workflows/main.yml for texlive-source CI building
#
# Norbert Preining
# Public Domain
#
# This file controls CI testing via Github Actions of the
# git-svn checkout of the TeX Live source directory
# which is pushed to Github
#   https://github.com/TeX-Live/texlive-source
# The cron job that does the git svn up and git push is
# running on texlive.info; see norbert cron there. Run cmd as norbert:
#   /home/norbert/git-svn-repos/git-svn-syncer --new texlive-source
#
# To make and retrieve new binaries:
# * go to https://github.com/TeX-Live/texlive-source/commits/master
#   and check that all commits you want are there (max waiting time 30min).
# * go to https://github.com/TeX-Live/texlive-source/releases
#   and "Draft new release" (does git tag).
# * wait 30min or so.
# * go to https://github.com/TeX-Live/texlive-source/releases/latest/
#   and there should be binaries for the new "release".
# * use tl-update-bindir.
#
# The actual code for building and running is in the Github Action
#   TeX-Live/tl-build-docker-action
#
# TODO
# * it would be nice if we could adjust the docker action usage
#   to override the dockerfile but this seems not to be possible at the moment

on: [push]


jobs:
  docker_linux_32bit_job:
    runs-on: ubuntu-latest
    name: i386-linux build job
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: checkout
        uses: actions/checkout@v2
        with:
          repository: TeX-Live/tl-build-docker-action
          ref: v4
          path: actions/TeX-Live/tl-build-docker-action
      - name: Update Dockerfile
        run: cp actions/TeX-Live/tl-build-docker-action/Dockerfile.i386-linux actions/TeX-Live/tl-build-docker-action/Dockerfile
      - name: Run docker image
        uses: ./actions/TeX-Live/tl-build-docker-action
        with:
          arch: 'i386-linux'
      - name: find file step
        run: ls -l
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: texlive-bin-i386-linux.tar.gz
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  docker_linux_64bit_job:
    runs-on: ubuntu-latest
    name: x86_64-linux build job
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: checkout
        uses: actions/checkout@v2
        with:
          repository: TeX-Live/tl-build-docker-action
          ref: v4
          path: actions/TeX-Live/tl-build-docker-action
      - name: Update Dockerfile
        run: cp actions/TeX-Live/tl-build-docker-action/Dockerfile.x86_64-linux actions/TeX-Live/tl-build-docker-action/Dockerfile
      - name: Run docker image
        uses: ./actions/TeX-Live/tl-build-docker-action
        with:
          arch: 'x86_64-linux'
      - name: find file step
        run: ls -l
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: texlive-bin-x86_64-linux.tar.gz
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  docker_linuxmusl_64bit_job:
    runs-on: ubuntu-latest
    name: x86_64-linuxmusl build job
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: checkout
        uses: actions/checkout@v2
        with:
          repository: TeX-Live/tl-build-docker-action
          ref: v4
          path: actions/TeX-Live/tl-build-docker-action
      - name: Update Dockerfile
        run: cp actions/TeX-Live/tl-build-docker-action/Dockerfile.x86_64-linuxmusl actions/TeX-Live/tl-build-docker-action/Dockerfile
      - name: Run docker image
        uses: ./actions/TeX-Live/tl-build-docker-action
        with:
          arch: 'x86_64-linuxmusl'
      - name: find file step
        run: ls -l
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: texlive-bin-x86_64-linuxmusl.tar.gz
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  docker_armhf_job:
    runs-on: ubuntu-latest
    name: x86_64-linuxmusl build job
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: checkout tl build docker
        uses: actions/checkout@v2
        with:
          repository: TeX-Live/tl-build-docker-action
          ref: v4
          path: actions/TeX-Live/tl-build-docker-action
      - name: arm runner
        uses: actions/checkout@v2
        with:
          base_image: raspbian_lite:2020-02-13
          commands: |
            ./actions/TeX-Live/tl-build-docker-action/entrypoint.sh armhf-linux
          copy_artifact_path: texlive-bin-armhf-linux.tar.gz
      - name: find file step
        run: ls -l
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: texlive-bin-armhf-linux.tar.gz
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}