|
| 1 | +# Build a Ubuntu and Windows binary. |
| 2 | +# |
| 3 | +# https://github.com/melusina-org/make-common-lisp-program/actions/runs/6415297009/workflow |
| 4 | + |
| 5 | +name: 'Windows build' |
| 6 | + |
| 7 | +# Takes 13min to install QL dependencies… |
| 8 | +# windows: Unable to load foreign library (READLINE). |
| 9 | +# Error opening shared object "libreadline.dll": |
| 10 | + |
| 11 | +on: |
| 12 | + workflow_dispatch: |
| 13 | + push: |
| 14 | + branches-ignore: |
| 15 | + - v1 |
| 16 | + tags-ignore: |
| 17 | + - v1.* |
| 18 | + |
| 19 | +jobs: |
| 20 | + build-on-tier-1-platforms: |
| 21 | + strategy: |
| 22 | + matrix: |
| 23 | + implementation: ['sbcl'] |
| 24 | + # there is also 'ubuntu-latest', 'macos-latest' |
| 25 | + os: ['windows-latest'] |
| 26 | + runs-on: '${{ matrix.os }}' |
| 27 | + name: 'Build on Tier 1 Platform (Windows for now)' |
| 28 | + |
| 29 | + timeout-minutes: 20 |
| 30 | + steps: |
| 31 | + # Clone our repository. |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + |
| 34 | + # - name: 'Install MacPorts' |
| 35 | + # if: runner.os == 'macOS' |
| 36 | + # uses: melusina-org/setup-macports@v1 |
| 37 | + |
| 38 | + - name: 'Setup Common Lisp' |
| 39 | + uses: melusina-org/setup-common-lisp@v1 |
| 40 | + with: |
| 41 | + implementation: '${{ matrix.implementation }}' |
| 42 | + - name: 'Setup Quicklisp' |
| 43 | + uses: melusina-org/setup-quicklisp@v1 |
| 44 | + id: quicklisp |
| 45 | + with: |
| 46 | + implementation: '${{ matrix.implementation }}' |
| 47 | + |
| 48 | + # - name: 'Install CL-GITHUB-ACTIONS' |
| 49 | + # uses: actions/checkout@v4 |
| 50 | + # with: |
| 51 | + # repository: melusina-org/cl-github-actions |
| 52 | + # path: ${{ steps.quicklisp.outputs.quicklisp-local-projects }}/cl-github-actions |
| 53 | + # - name: 'Run unit tests' |
| 54 | + # uses: melusina-org/run-common-lisp-program@v1 |
| 55 | + # with: |
| 56 | + # implementation: '${{ matrix.implementation }}' |
| 57 | + # system: 'org.melusina.github-action.make-common-lisp-program/testsuite' |
| 58 | + # entrypoint: 'unit-tests' |
| 59 | + |
| 60 | + # Build: |
| 61 | + - name: 'Build OpenBookStore' |
| 62 | + run: make build |
| 63 | + id: make |
| 64 | + # with: |
| 65 | + # implementation: '${{ matrix.implementation }}' |
| 66 | + # system: 'org.melusina.reference-utility/executable' |
| 67 | + |
| 68 | + # Publish: |
| 69 | + # does this work? |
| 70 | + - name: 'Upload binary' |
| 71 | + uses: actions/upload-artifact@v3 |
| 72 | + with: |
| 73 | + name: openbookstore binary ${{ matrix.implementation }} ${{ runner.os }} ${{ runner.arch }} |
| 74 | + path: ${{ steps.make.outputs.build-pathname }} |
| 75 | + # or just say bin/* ? |
| 76 | + if-no-files-found: error |
0 commit comments