Skip to content

Commit

Permalink
Add schedule, setp nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinans committed Jan 13, 2025
1 parent b407a57 commit ddcf85c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,25 @@ name: Main workflow
on:
- pull_request
- push
- schedule:
- cron: '0 0 * * 0' # At 00:00 UTC every Sunday

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
node-version:
- 20.x
ocaml-compiler:
- 5.2.x
- 4.12.x
- 4.11.x
- 4.10.x
- 4.09.x
- 4.08.x
exclude:
- os: macos-latest
ocaml-compiler: 4.11.x
- os: macos-latest
ocaml-compiler: 4.09.x
- os: macos-latest
ocaml-compiler: 4.08.x
- os: windows-latest
ocaml-compiler: 5.2.x

runs-on: ${{ matrix.os }}

Expand All @@ -44,11 +37,10 @@ jobs:
opam-pin: false
opam-depext: false

- name: Ensure Node.js is installed (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y nodejs
node --version
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- run: opam pin add -ny .

Expand Down
6 changes: 1 addition & 5 deletions tests/js/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
(libraries landmark))

(rule
(enabled_if (= %{ocaml-config:system} linux))
(deps ./test.bc.js)
(target test.out)
(action
Expand All @@ -16,9 +15,6 @@

(rule
(alias runtest)
(enabled_if
(and
(>= %{ocaml_version} "4.04")
(= %{ocaml-config:system} linux)))
(enabled_if (>= %{ocaml_version} "4.04"))
(action
(diff test.out.expected test.out)))

0 comments on commit ddcf85c

Please sign in to comment.