Skip to content

Commit

Permalink
Update GitHub Actions (#1078)
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto authored Sep 3, 2024
1 parent 53fbf39 commit f43be8f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 39 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Changelog check

on:
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened, labeled, unlabeled ]
branches: [master]
types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
Changelog-Entry-Check:
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ jobs:
env:
NIXPKGS_ALLOW_INSECURE: 1
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: |
nix develop -c dune build @runtest @check
- name: Checkout tree
uses: actions/checkout@v4
with:
submodules: true
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix develop -c dune build @runtest @check
52 changes: 24 additions & 28 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 4.14
- 5.x
- "4.14"
- "5"
local-packages:
- |
*.opam
Expand All @@ -35,21 +35,19 @@ jobs:
runs-on: ${{ matrix.os }}

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: ${{ matrix.os == 'ubuntu-latest' }}
opam-depext: true
opam-depext-flags: --with-test
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}

- run: |
sudo apt-get update && sudo apt-get upgrade
opam depext conf-libcurl
opam install conf-libcurl
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: echo "PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig" >>"$GITHUB_ENV"
Expand All @@ -68,8 +66,8 @@ jobs:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 4.14
- 5.x
- "4.14"
- "5"
local-packages:
- |
*.opam
Expand All @@ -85,21 +83,19 @@ jobs:
runs-on: ${{ matrix.os }}

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: ${{ matrix.os == 'ubuntu-latest' }}
opam-depext: true
opam-depext-flags: --with-test
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}

- run: |
sudo apt-get update && sudo apt-get upgrade
opam depext conf-libcurl
opam install conf-libcurl
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: echo "PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig" >>"$GITHUB_ENV"
Expand All @@ -118,7 +114,7 @@ jobs:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 5.x
- "5"
local-packages:
- |
http.opam
Expand All @@ -128,14 +124,14 @@ jobs:
runs-on: ${{ matrix.os }}

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: ${{ matrix.os == 'ubuntu-latest' }}
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
Expand All @@ -153,22 +149,22 @@ jobs:
os:
- ubuntu-latest
ocaml-compiler:
- 5.x
- "5"
local-packages:
- |
*.opam
runs-on: ${{ matrix.os }}

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: ${{ matrix.os == 'ubuntu-latest' }}
dune-cache: true
opam-local-packages: ${{ matrix.local-packages }}
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
Expand Down

0 comments on commit f43be8f

Please sign in to comment.