Skip to content

Commit

Permalink
More gh action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gridbugs committed Jul 7, 2023
1 parent 686470e commit dabcd09
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- if: matrix.os == 'ubuntu-latest'
name: 'Run "apt update" so setup-ocaml can install depexts (ubuntu)'
run: |
sudo apt update
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14.1"
- if: matrix.os == 'ubuntu-latest'
name: 'Install dependencies (ubuntu)'
run: |
sudo apt update
sudo apt install libasound2-dev libsdl2-dev
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest
Expand All @@ -47,21 +46,20 @@ jobs:
tar -czf /tmp/llama.tar.gz --exclude=.git -C .. llama
mkdir /tmp/empty
cd /tmp/empty
- if: matrix.os == 'ubuntu-latest'
name: 'Run "apt update" so setup-ocaml can install depexts (ubuntu)'
run: |
sudo apt update
- if: matrix.os == 'ubuntu-latest'
name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14.1"
opam-depext-flags: tsdl,conf-pkg-config,conf-alsa
- if: matrix.os == 'ubuntu-latest'
name: 'Install dependencies (ubuntu)'
run: |
sudo apt update
sudo apt install libasound2-dev libsdl2-dev
- if: matrix.os == 'macOS-latest'
name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14.1"
opam-depext-flags: ocamlsdl2
opam-depext-flags: tsdl
- run: opam pin /tmp/llama.tar.gz

0 comments on commit dabcd09

Please sign in to comment.