|
| 1 | +name: build-manual |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + new_commit_n: |
| 6 | + description: "Commit for last release" |
| 7 | + required: true |
| 8 | + old_commit_n: |
| 9 | + description: "Commit # for upstream" |
| 10 | + required: true |
| 11 | + |
| 12 | +env: |
| 13 | + UPSTREAM_API: https://api.github.com/repos/flatwhatson/emacs |
| 14 | + UPSTREAM_BRANCH: pgtk-nativecomp |
| 15 | + UPSTREAM_REPO: https://github.com/flatwhatson/emacs |
| 16 | + UPSTREAM_SRC: https://raw.githubusercontent.com/flatwhatson/emacs/pgtk-nativecomp |
| 17 | + |
| 18 | +jobs: |
| 19 | + check: |
| 20 | + runs-on: ubuntu-20.04 |
| 21 | + env: |
| 22 | + OLD_COMMIT_N: ${{ github.event.inputs.old_commit_n }} |
| 23 | + NEW_COMMIT_N: ${{ github.event.inputs.new_commit_n }} |
| 24 | + steps: |
| 25 | + - name: Checkout the repo |
| 26 | + uses: actions/checkout@v2 |
| 27 | + - name: Check last version |
| 28 | + run: bash ./ci/check-last-version.bash |
| 29 | + - name: Set env vars |
| 30 | + id: var |
| 31 | + run: . ./ci/set-env-vars.bash |
| 32 | + outputs: |
| 33 | + pkg_version: ${{ steps.var.outputs.pkg_version }} |
| 34 | + |
| 35 | + artifact: |
| 36 | + runs-on: ubuntu-20.04 |
| 37 | + needs: check |
| 38 | + container: |
| 39 | + image: mpsq/emacs-builder:latest |
| 40 | + options: --user root |
| 41 | + env: |
| 42 | + OLD_COMMIT_N: ${{ github.event.inputs.old_commit_n }} |
| 43 | + NEW_COMMIT_N: ${{ github.event.inputs.new_commit_n }} |
| 44 | + PKG_VERSION: ${{ needs.check.outputs.pkg_version }} |
| 45 | + steps: |
| 46 | + - name: Checkout the repo |
| 47 | + uses: actions/checkout@v2 |
| 48 | + - name: Patch glibc |
| 49 | + run: bash ./ci/patch-glibc.bash |
| 50 | + - name: Build artifacts |
| 51 | + run: bash ./ci/build-artifacts.bash |
| 52 | + - name: Upload artifacts |
| 53 | + uses: actions/upload-artifact@v2 |
| 54 | + with: |
| 55 | + name: emacs-manual-build |
| 56 | + path: /home/pcr/${{ needs.check.outputs.pkg_version }}.tar.gz |
| 57 | + retention-days: 5 |
0 commit comments