Skip to content

Commit 9270b6a

Browse files
ci: Try out basic Github ci smoke test
Run ci always Allow manual trigger run on all systems fix fix Windows doesn't work, improve smoke tests f t
1 parent f14bf3b commit 9270b6a

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build and smoke test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
defaults:
7+
run:
8+
working-directory: ./client
9+
jobs:
10+
build-and-test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
- ubuntu-24.04-arm
18+
- macos-latest # arm64
19+
- macos-13 # osx-64
20+
# Windows fails with internal compiler error
21+
# - windows-latest
22+
# - windows-11-arm
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
- uses: bazel-contrib/[email protected]
27+
with:
28+
bazelisk-cache: true
29+
disk-cache: ${{ github.workflow }}
30+
repository-cache: true
31+
- name: Add workdir to PATH
32+
run: |
33+
echo "$(pwd)" >> $GITHUB_PATH
34+
- name: Build
35+
run: bazel build apps/public/Datasets/...
36+
- name: Smoke test
37+
timeout-minutes: 10
38+
run: |
39+
cd bazel-bin/apps/public/Datasets/v2/cmd/datasets/datasets_ \
40+
&& ./datasets --version \
41+
&& ./datasets --help \
42+
&& ./datasets download virus genome taxon 101947
43+
- name: Upload build artifacts
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: datasets-${{ matrix.os }}
47+
path: client/bazel-bin/apps/public/Datasets/v2/cmd/datasets/datasets_/datasets

0 commit comments

Comments
 (0)