Bump version to 0.3 #51
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| - push | |
| - pull_request | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| main: | |
| name: GHC ${{ matrix.ghc }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| ghc: | |
| - "9.2" | |
| - "9.4" | |
| - "9.6" | |
| - "9.8" | |
| - "9.10" | |
| - "9.12" | |
| include: | |
| - os: macOS-latest | |
| ghc: "9.12" | |
| - os: windows-latest | |
| ghc: "9.12" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: jcs090218/setup-emacs@master | |
| with: | |
| version: "29.4" | |
| - uses: haskell-actions/setup@v2 | |
| id: setup-haskell-cabal | |
| with: | |
| ghc-version: ${{ matrix.ghc }} | |
| cabal-version: "latest" | |
| cabal-update: true | |
| - uses: actions/cache@v4 | |
| name: Cache cabal store | |
| with: | |
| path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | |
| key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }} | |
| restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- | |
| - name: Versions | |
| run: | | |
| cabal --version | |
| emacs --version | |
| - name: Build | |
| run: | | |
| cabal build all --builddir dist --project-file cabal.project.ci | |
| - name: Test | |
| run: | | |
| DYNAMIC_MODULE=$(find dist -name 'libemacs-module-test.*' -o -name 'emacs-module-test.dll') | |
| DYNAMIC_MODULE_DIR=$(dirname "$DYNAMIC_MODULE") | |
| DYNAMIC_MODULE_FILE=$(basename "$DYNAMIC_MODULE") | |
| echo "Emacs module is built at $DYNAMIC_MODULE" | |
| echo emacs -Q --batch --module-assertions -L "$DYNAMIC_MODULE_DIR" -L "test/elisp" -l "$DYNAMIC_MODULE_FILE" -l haskell-emacs-module-test -f ert-run-tests-batch-and-exit | |
| emacs -Q --batch --module-assertions -L "$DYNAMIC_MODULE_DIR" -L "test/elisp" -l "$DYNAMIC_MODULE_FILE" -l haskell-emacs-module-test -f ert-run-tests-batch-and-exit | |
| - name: Unpack | |
| run: | | |
| cabal sdist --ignore-project --output-directory .. | |
| cd .. | |
| cabal get emacs-module-*.tar.gz | |
| - name: Cabal check | |
| run: | | |
| cd ../emacs-module-*/ | |
| cabal check | |
| - name: Build fresh | |
| run: | | |
| cd ../emacs-module-*/ | |
| cabal build all |