Skip to content

Commit

Permalink
Upgrade GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-larraz committed Jan 29, 2024
1 parent 102d448 commit d217e3c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/kind2-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Update package information
run: ${{ matrix.pkg_update }}
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Upload kind2 artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kind2-${{ matrix.os }}
path: bin/kind2
6 changes: 3 additions & 3 deletions .github/workflows/kind2-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Docker meta
id: meta
Expand All @@ -21,13 +21,13 @@ jobs:
echo "tag=$image:$tag" >> $GITHUB_OUTPUT
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push to Docker Hub
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
file: docker/Dockerfile
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/kind2-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Build and push to local registry
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
file: docker/Dockerfile
context: ./
Expand All @@ -36,13 +36,13 @@ jobs:

- name: Extract kind 2 binary
id: extract
uses: shrink/actions-docker-extract@v2
uses: shrink/actions-docker-extract@v3
with:
image: localhost:5000/name/kind2:latest
path: /home/opam/kind2-build/bin/kind2

- name: Upload kind2 binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ${{ steps.extract.outputs.destination }}
name: linux
Expand All @@ -60,7 +60,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up OCaml ${{ matrix.ocaml-version }}+flambda
uses: ocaml/setup-ocaml@v2
Expand All @@ -77,7 +77,7 @@ jobs:
run: strip bin/kind2

- name: Upload Kind 2 binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos
path: bin/kind2
Expand All @@ -89,7 +89,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Delete old assets
env:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:

steps:
- name: Download binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.version }}

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/kind2-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Build and push to local registry
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
file: docker/Dockerfile
context: ./
Expand All @@ -36,13 +36,13 @@ jobs:

- name: Extract kind 2 binary
id: extract
uses: shrink/actions-docker-extract@v2
uses: shrink/actions-docker-extract@v3
with:
image: localhost:5000/name/kind2:latest
path: /home/opam/kind2-build/bin/kind2

- name: Upload kind2 binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ${{ steps.extract.outputs.destination }}
name: linux
Expand All @@ -60,7 +60,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up OCaml ${{ matrix.ocaml-version }}+flambda
uses: ocaml/setup-ocaml@v2
Expand All @@ -77,7 +77,7 @@ jobs:
run: strip bin/kind2

- name: Upload Kind 2 binary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos
path: bin/kind2
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:

steps:
- name: Download binary
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.version }}

Expand Down

0 comments on commit d217e3c

Please sign in to comment.