Skip to content

Commit d35adfb

Browse files
committed
Try to make dep download independent from OS
1 parent 9301f42 commit d35adfb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ jobs:
2727
uses: actions/checkout@v2
2828

2929
- name: Download Franc binary
30+
uses: wei/wget@v1
31+
with:
32+
args: -O ./bin/language-guesser https://github.com/avvertix/franc-bin/releases/download/v1.0.0/franc-bin-linux
33+
34+
- name: Ensure Franc binary is executable
35+
if: "$RUNNER_OS" == "Linux"
3036
run: |
31-
mkdir ./bin
32-
wget -O ./bin/language-guesser https://github.com/avvertix/franc-bin/releases/download/v1.0.0/franc-bin-linux
3337
chmod +x ./bin/language-guesser
3438
3539
- name: Setup PHP

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ testbench.yaml
1212
vendor
1313
node_modules
1414
.php-cs-fixer.cache
15-
bin/*

bin/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)