Merge pull request #29 from JuliaWeb/32bit #135
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 | |
tags: ['*'] | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
permissions: | |
actions: write | |
contents: read | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.allow_failure }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.9' | |
- '1' | |
- 'nightly' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
- x86 | |
exclude: | |
- os: macOS-latest | |
arch: x86 | |
include: | |
- version: '1.9' | |
allow_failure: false | |
- version: '1' | |
allow_failure: false | |
- version: 'nightly' | |
allow_failure: true | |
steps: | |
- uses: actions/checkout@v4 | |
# Install test dependencies | |
- uses: awalsh128/cache-apt-pkgs-action@v1 | |
with: | |
packages: expect | |
version: 1.0 | |
# Install Julia | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
# Cache everything | |
- uses: julia-actions/cache@v2 | |
# Run the tests | |
- uses: julia-actions/julia-runtest@latest | |
# Compute coverage | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v4 | |
with: | |
files: lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} | |
docs: | |
name: Documentation | |
permissions: | |
actions: write | |
contents: write | |
statuses: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Install Julia and dependencies | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
- name: Install dependencies | |
run: julia --project=docs/ -e 'using Pkg; Pkg.instantiate()' | |
- name: Build and deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: julia --project=docs/ docs/make.jl |