build(deps): Bump actions/download-artifact from 2 to 4 #153
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- master | |
- github-actions # To test changes related to GitHub Actions. | |
- ci # To test all CI changes. | |
paths-ignore: | |
- '*.md' | |
- doc/** | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '*.md' | |
- doc/** | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-12 | |
- ubuntu-20.04 | |
- windows-2019 | |
emacs-version: | |
- '27.2' | |
- '28.1' | |
include: | |
# XXX: The (os, emacs-version) combination must be different from those from those above, | |
# otherwise GitHub Actions modifies the existing combinations, instead of adding new. | |
- os: macos-11 | |
emacs-version: '27.2' | |
# Cross build | |
target: aarch64-apple-darwin | |
- os: macos-11 | |
emacs-version: '28.1' | |
# Cross build | |
target: aarch64-apple-darwin | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Rust | |
run: | | |
rustup install stable | |
rustc -Vv | |
cargo -V | |
- name: Set up Rust's cross-build target | |
if: matrix.target | |
run: | | |
rustup target add ${{ matrix.target }} | |
- uses: jcs090218/setup-emacs@master | |
with: | |
version: ${{ matrix.emacs-version }} | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: emacs-eask/setup-eask@master | |
with: | |
version: 'snapshot' | |
- run: bin/setup | |
- run: bin/build -target "${{ matrix.target }}" | |
- run: bin/inspect-binaries | |
continue-on-error: true | |
- name: Install tree-sitter CLI | |
if: ${{ !matrix.target }} | |
run: npm install -g [email protected] | |
- run: eask install-deps --dev | |
- run: bin/test | |
if: ${{ !matrix.target }} | |
- run: bin/test bench | |
if: ${{ !matrix.target }} |