-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (53 loc) · 1.74 KB
/
TestInsalls.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test Installs
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
id-token: write
jobs:
test-cli:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install DuckDB on Mac
if: matrix.os == 'macos-latest'
run: |
brew install unzip
wget -O duckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.8.1/duckdb_cli-osx-universal.zip
unzip duckdb.zip -d duckdb
sudo mv duckdb/duckdb /usr/local/bin
- name: Install DuckDB on Linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install wget unzip
wget -O duckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.8.1/duckdb_cli-linux-amd64.zip
unzip duckdb.zip -d duckdb
sudo mv duckdb/duckdb /usr/local/bin
- name: Install DuckDB on Windows
if: matrix.os == 'windows-latest'
run: |
choco install wget unzip
wget -O duckdb.zip https://github.com/duckdb/duckdb/releases/download/v0.8.1/duckdb_cli-windows-amd64.zip
unzip duckdb.zip
- name: Create Script
shell: bash
run: |
echo "SET custom_extension_repository='dbe.wheretrue.com/exon/latest';" > test.sql
echo "INSTALL exon;" >> test.sql
echo "LOAD exon;" >> test.sql
echo "SELECT gc_content('ATCG');" >> test.sql
cat test.sql
- name: Run DuckDB (Unix)
shell: bash
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
run: |
duckdb -unsigned < test.sql
- name: Run DuckDB (Windows)
shell: bash
if: matrix.os == 'windows-latest'
run: |
./duckdb.exe -unsigned < test.sql