Skip to content

Commit 4e11479

Browse files
authored
Update GitHub action scripts (#64)
1 parent 593a38d commit 4e11479

File tree

4 files changed

+12
-31
lines changed

4 files changed

+12
-31
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches: [master]
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
# needed to allow julia-actions/cache to delete old caches that it has created
8+
permissions:
9+
actions: write
10+
contents: read
711
jobs:
812
test:
913
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -21,24 +25,16 @@ jobs:
2125
# os: ubuntu-latest
2226
# arch: x86
2327
steps:
24-
- uses: actions/checkout@v2
25-
- uses: julia-actions/setup-julia@v1
28+
- uses: actions/checkout@v4
29+
- uses: julia-actions/setup-julia@v2
2630
with:
2731
version: ${{ matrix.version }}
2832
arch: ${{ matrix.arch }}
29-
- uses: actions/cache@v1
30-
env:
31-
cache-name: cache-artifacts
32-
with:
33-
path: ~/.julia/artifacts
34-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35-
restore-keys: |
36-
${{ runner.os }}-test-${{ env.cache-name }}-
37-
${{ runner.os }}-test-
38-
${{ runner.os }}-
33+
- uses: julia-actions/cache@v1
3934
- uses: julia-actions/julia-buildpkg@v1
4035
- uses: julia-actions/julia-runtest@v1
4136
- uses: julia-actions/julia-processcoverage@v1
42-
- uses: codecov/codecov-action@v1
37+
- uses: codecov/codecov-action@v4
4338
with:
4439
file: lcov.info
40+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/format_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: julia-actions/setup-julia@latest
1414
with:
1515
version: '1'
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Format check
1818
shell: julia --color=yes {0}
1919
run: |

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SDPA.jl
22

3-
[![Build Status](https://github.com/jump-dev/SDPA.jl/workflows/CI/badge.svg?branch=master)](https://github.com/jump-dev/SDPA.jl/actions?query=workflow%3ACI)
3+
[![Build Status](https://github.com/jump-dev/SDPA.jl/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jump-dev/SDPA.jl/actions?query=workflow%3ACI)
44
[![codecov](https://codecov.io/gh/jump-dev/SDPA.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jump-dev/SDPA.jl)
55

66
[SDPA.jl](https://github.com/jump-dev/SDPA.jl) is a wrapper for the
@@ -48,6 +48,7 @@ solvers, SDPA-GMP, SDPA-DD, and SDPA-QD of the family.
4848
```julia
4949
using JuMP, SDPA
5050
model = Model(SDPA.Optimizer)
51+
# Optionally set parameters, for example:
5152
set_attribute(model, "Mode", SDPA.PARAMETER_DEFAULT)
5253
```
5354

0 commit comments

Comments
 (0)