Skip to content

Add JuliaFormatter workflow, update macOS CI to aarch64 #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 20 additions & 18 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'pre' }}
runs-on: ${{ matrix.runner.os }}
continue-on-error: ${{ matrix.runner.version == 'pre' }}
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
strategy:
matrix:
version:
- '1.6'
- '1'
- pre
os:
- ubuntu-latest
arch:
- x64
include:
runner:
- version: 'min'
os: ubuntu-latest
arch: x64
- version: '1'
os: ubuntu-latest
arch: x64
- version: 'pre'
os: ubuntu-latest
arch: x64
- version: '1'
os: ubuntu-latest
arch: x86
Expand All @@ -33,28 +34,29 @@ jobs:
arch: x64
- version: '1'
os: macOS-latest
arch: x64
arch: aarch64

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
version: ${{ matrix.runner.version }}
arch: ${{ matrix.runner.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' }}
coverage: ${{ matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64' }}
- uses: julia-actions/julia-processcoverage@v1
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
if: matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64'
- uses: codecov/codecov-action@v5
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
if: matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64'
with:
files: lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- uses: coverallsapp/github-action@v2
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
if: matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
21 changes: 21 additions & 0 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Format

on:
push:
branches:
- master
pull_request:

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:
format:
runs-on: ubuntu-latest

steps:
- name: Format code
uses: TuringLang/actions/Format@main
Loading