Skip to content

Commit a0d7252

Browse files
committed
CI on forked branches
1 parent 55a93b3 commit a0d7252

1 file changed

Lines changed: 2 additions & 50 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -67,57 +67,9 @@ jobs:
6767
git fetch https://github.com/$GITHUB_REPOSITORY.git ${GITHUB_REF#refs/heads/}
6868
git -c user.name='Apache DataFusion Comet Test Account' -c user.email='comettestacc@gmail.com' merge --no-commit --progress --squash FETCH_HEAD
6969
git -c user.name='Apache DataFusion Comet Test Account' -c user.email='comettestacc@gmail.com' commit -m "Merged commit" --allow-empty
70-
build-native:
71-
name: Build native
72-
runs-on: ubuntu-24.04
73-
container:
74-
image: amd64/rust
75-
steps:
76-
- uses: actions/checkout@v6
77-
78-
- name: Setup Rust toolchain
79-
uses: ./.github/actions/setup-builder
80-
with:
81-
rust-version: ${{ env.RUST_VERSION }}
82-
jdk-version: 17
83-
84-
- name: Restore Cargo cache
85-
uses: actions/cache/restore@v5
86-
with:
87-
path: |
88-
~/.cargo/registry
89-
~/.cargo/git
90-
native/target
91-
key: ${{ runner.os }}-cargo-ci-${{ hashFiles('native/**/Cargo.lock', 'native/**/Cargo.toml') }}-${{ hashFiles('native/**/*.rs') }}
92-
restore-keys: |
93-
${{ runner.os }}-cargo-ci-${{ hashFiles('native/**/Cargo.lock', 'native/**/Cargo.toml') }}-
94-
95-
- name: Build native library (CI profile)
96-
run: |
97-
cd native
98-
cargo build --profile ci
99-
env:
100-
RUSTFLAGS: "-Ctarget-cpu=x86-64-v3 -Clink-arg=-fuse-ld=bfd"
101-
102-
- name: Upload native library
103-
uses: actions/upload-artifact@v7
104-
with:
105-
name: native-lib-linux
106-
path: native/target/ci/libcomet.so
107-
retention-days: 1
108-
109-
- name: Save Cargo cache
110-
uses: actions/cache/save@v5
111-
if: github.ref == 'refs/heads/main'
112-
with:
113-
path: |
114-
~/.cargo/registry
115-
~/.cargo/git
116-
native/target
117-
key: ${{ runner.os }}-cargo-ci-${{ hashFiles('native/**/Cargo.lock', 'native/**/Cargo.toml') }}-${{ hashFiles('native/**/*.rs') }}
118-
70+
11971
sql_core-1:
120-
needs: build-native
72+
needs: precondition
12173
name: "Build modules: sql_core-1"
12274
runs-on: ubuntu-24.04
12375
container:

0 commit comments

Comments
 (0)