Skip to content

Commit d91e462

Browse files
authored
Add JuliaFormatter workflow (#474)
* Add format workflow * Update macos to aarch64
1 parent d92cfb1 commit d91e462

File tree

2 files changed

+41
-18
lines changed

2 files changed

+41
-18
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,24 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ${{ matrix.os }}
12-
continue-on-error: ${{ matrix.version == 'pre' }}
11+
runs-on: ${{ matrix.runner.os }}
12+
continue-on-error: ${{ matrix.runner.version == 'pre' }}
1313
# needed to allow julia-actions/cache to delete old caches that it has created
1414
permissions:
1515
actions: write
1616
contents: read
1717
strategy:
1818
matrix:
19-
version:
20-
- '1.6'
21-
- '1'
22-
- pre
23-
os:
24-
- ubuntu-latest
25-
arch:
26-
- x64
27-
include:
19+
runner:
20+
- version: 'min'
21+
os: ubuntu-latest
22+
arch: x64
23+
- version: '1'
24+
os: ubuntu-latest
25+
arch: x64
26+
- version: 'pre'
27+
os: ubuntu-latest
28+
arch: x64
2829
- version: '1'
2930
os: ubuntu-latest
3031
arch: x86
@@ -33,28 +34,29 @@ jobs:
3334
arch: x64
3435
- version: '1'
3536
os: macOS-latest
36-
arch: x64
37+
arch: aarch64
38+
3739
steps:
3840
- uses: actions/checkout@v4
3941
- uses: julia-actions/setup-julia@v2
4042
with:
41-
version: ${{ matrix.version }}
42-
arch: ${{ matrix.arch }}
43+
version: ${{ matrix.runner.version }}
44+
arch: ${{ matrix.runner.arch }}
4345
- uses: julia-actions/cache@v2
4446
- uses: julia-actions/julia-buildpkg@v1
4547
- uses: julia-actions/julia-runtest@v1
4648
with:
47-
coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' }}
49+
coverage: ${{ matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64' }}
4850
- uses: julia-actions/julia-processcoverage@v1
49-
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
51+
if: matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64'
5052
- uses: codecov/codecov-action@v5
51-
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
53+
if: matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64'
5254
with:
5355
files: lcov.info
5456
fail_ci_if_error: true
5557
token: ${{ secrets.CODECOV_TOKEN }}
5658
- uses: coverallsapp/github-action@v2
57-
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
59+
if: matrix.runner.version == '1' && matrix.runner.os == 'ubuntu-latest' && matrix.runner.arch == 'x64'
5860
with:
5961
github-token: ${{ secrets.GITHUB_TOKEN }}
6062
path-to-lcov: lcov.info

.github/workflows/Format.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Format
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: only if it is a pull request build.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
15+
jobs:
16+
format:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Format code
21+
uses: TuringLang/actions/Format@main

0 commit comments

Comments
 (0)