-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sam Gammon <[email protected]>
- Loading branch information
Showing
1 changed file
with
71 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,57 +143,93 @@ jobs: | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: "Setup: Docker" | ||
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0 | ||
id: buildx | ||
with: | ||
install: true | ||
- name: "Setup: Checkout" | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: "Setup: GraalVM (Java 20)" | ||
- name: "Setup: Rust" | ||
uses: actions-rust-lang/setup-rust-toolchain@1fbea72663f6d4c03efaab13560c8a24cfd2a7cc # v1.9.0 | ||
with: | ||
toolchain: nightly | ||
components: clippy,rustfmt | ||
rustflags: "" | ||
- name: "Setup: SCCache" | ||
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af # v0.0.5 | ||
- name: "Setup: Rust Caching" | ||
run: | | ||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | ||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | ||
- name: "Setup: GraalVM (Java 22)" | ||
uses: graalvm/setup-graalvm@2911b2304bee2c2f59b9a67bf45f025a6b6de4b1 # v1.2.2 | ||
with: | ||
distribution: "graalvm" | ||
java-version: 22 | ||
check-for-updates: ${{ matrix.os == 'ubuntu' }} | ||
java-version: "22" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: "Setup: Python (3.12)" | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: 3.12 | ||
- name: "Setup: Buildless" | ||
if: false # temporarily disabled | ||
uses: buildless/setup@30e82389418c7f17046606183bc4c78b2c8913e0 # v1.0.2 | ||
- name: "Setup: Node" | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | ||
with: | ||
node-version: 22 | ||
- name: "Setup: Yarn" | ||
run: npm install -g [email protected] && yarn | ||
- id: "auth" | ||
name: "Setup: Authorize Service Account" | ||
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c # v2.1.2 | ||
- name: "Setup: PNPM" | ||
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | ||
with: | ||
credentials_json: "${{ secrets.BUILDBOT_SERVICE_ACCOUNT }}" | ||
create_credentials_file: true | ||
export_environment_variables: true | ||
cleanup_credentials: true | ||
- name: "🛠️ Build" | ||
version: "9.2.0" | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --strict-peer-dependencies] | ||
- name: "Setup: LLVM 18" | ||
run: | | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 18 all | ||
export LLVM_PATH=/usr/lib/llvm-18 | ||
export PATH="$LLVM_PATH/bin:$PATH" | ||
export LD_LIBRARY_PATH="$LLVM_PATH/lib:$LD_LIBRARY_PATH" | ||
export LLVM_CONFIG="$LLVM_PATH/bin/llvm-config" | ||
echo LLVM_PATH=$LLVM_PATH >> $GITHUB_ENV | ||
echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH >> $GITHUB_ENV | ||
echo LLVM_CONFIG=$LLVM_CONFIG >> $GITHUB_ENV | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
- name: "Setup: Dependencies" | ||
run: | | ||
cargo install cargo-fuzz cargo-insta rustfilt | ||
pnpm install -g [email protected] | ||
python -m pip install uv | ||
echo "Setting up venv..." | ||
uv venv | ||
echo "Installing dependencies via Pip..." | ||
uv pip install -r requirements.txt | ||
echo "Activating venv..." | ||
. .venv/bin/activate | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
- name: "Setup: Gradle" | ||
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2 | ||
id: gradlebuild | ||
continue-on-error: ${{ matrix.mode == 'labs' }} | ||
env: | ||
CI: true | ||
with: | ||
cache-read-only: true | ||
arguments: | | ||
build | ||
-x check | ||
-x test | ||
-x jvmTest | ||
-x jsTest | ||
-x jsBrowserTest | ||
-x nativeCompile | ||
--scan | ||
--no-daemon | ||
--warning-mode=none | ||
--dependency-verification=lenient | ||
-Pelide.ci=true | ||
-PbuildSamples=false | ||
-PbuildDocs=false | ||
-Pversions.java.minimum=11 | ||
- name: "🛠️ Build" | ||
run: | | ||
make setup natives && ./gradlew \ | ||
build \ | ||
-x check \ | ||
-x test \ | ||
-x jvmTest \ | ||
-x jsTest \ | ||
-x jsBrowserTest \ | ||
-x nativeCompile \ | ||
--scan \ | ||
--no-daemon \ | ||
--warning-mode=none \ | ||
--dependency-verification=lenient \ | ||
-Pelide.ci=true \ | ||
-PbuildSamples=false \ | ||
-PbuildDocs=false \ | ||
-Pversions.java.minimum=11 \ | ||
-Pversions.java.language=22 |