Skip to content

Commit de68d0e

Browse files
Add OS-specific dependencies support to Actions (#79)
* Install libmagic, required for athena * Fix macOS symlinks * Install with sudo on Linux
1 parent 4b39371 commit de68d0e

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- name: Configure git to not checkout CRLF
4343
run: git config --global --add core.autocrlf false
4444

45+
- name: Install OS-specific dependencies
46+
run: bash ./setup/${{ matrix.os }}.bash
47+
4548
- name: Test
4649
run: |
4750
bats --pretty --timing test --filter-tags !format

setup/macos-13.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./macos-all.bash

setup/macos-14.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./macos-all.bash

setup/macos-all.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
brew install libmagic
4+

setup/ubuntu-24.04.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
sudo apt-get update && \
4+
sudo apt-get install -y libmagic-dev && \
5+
sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*
6+

setup/windows-2022.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
choco install file

0 commit comments

Comments
 (0)