Skip to content

Commit af28a41

Browse files
committed
Add pipe line
1 parent 6a48a6e commit af28a41

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed
+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Build gvfs-fuse and testing
2+
3+
# Controls when the workflow will run
4+
on:
5+
push:
6+
branches: [ "main", "branch-*" ]
7+
pull_request:
8+
branches: [ "main", "branch-*" ]
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
changes:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: dorny/paths-filter@v2
21+
id: filter
22+
with:
23+
filters: |
24+
source_changes:
25+
- .github/**
26+
- api/**
27+
- bin/**
28+
- catalogs/**
29+
- clients/filesystem-fuse/**
30+
- common/**
31+
- conf/**
32+
- core/**
33+
- dev/**
34+
- gradle/**
35+
- meta/**
36+
- scripts/**
37+
- server/**
38+
- server-common/**
39+
- build.gradle.kts
40+
- gradle.properties
41+
- gradlew
42+
- setting.gradle.kts
43+
outputs:
44+
source_changes: ${{ steps.filter.outputs.source_changes }}
45+
46+
# Build for AMD64 architecture
47+
Gvfs-Build:
48+
needs: changes
49+
if: needs.changes.outputs.source_changes == 'true'
50+
runs-on: ubuntu-latest
51+
timeout-minutes: 60
52+
strategy:
53+
matrix:
54+
architecture: [linux/amd64]
55+
java-version: [ 17 ]
56+
env:
57+
PLATFORM: ${{ matrix.architecture }}
58+
steps:
59+
- uses: actions/checkout@v3
60+
61+
- uses: actions/setup-java@v4
62+
with:
63+
java-version: ${{ matrix.java-version }}
64+
distribution: 'temurin'
65+
cache: 'gradle'
66+
67+
- name: Set up QEMU
68+
uses: docker/setup-qemu-action@v2
69+
70+
- name: Check required command
71+
run: |
72+
dev/ci/check_commands.sh
73+
74+
- name: Build and test Gravitino
75+
run: |
76+
./gradlew :clients:filesystem-fuse:build -PenableFuse=true
77+
78+
- name: Free up disk space
79+
run: |
80+
dev/ci/util_free_space.sh
81+
82+
- name: Upload tests reports
83+
uses: actions/upload-artifact@v3
84+
if: ${{ (failure() && steps.integrationTest.outcome == 'failure') || contains(github.event.pull_request.labels.*.name, 'upload log') }}
85+
with:
86+
name: trino-connector-integrate-test-reports-${{ matrix.java-version }}
87+
path: |
88+
clients/filesystem-fuse/build/test/log/*.log
89+

0 commit comments

Comments
 (0)