From 2c85765437dfe5206c053656242c6e1d04e77de5 Mon Sep 17 00:00:00 2001 From: MolecularPilot Date: Fri, 11 Apr 2025 15:34:50 +1000 Subject: [PATCH 1/2] make automated CI tester --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fddf98a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI + +on: + push: + branches: [main, ci] + pull_request: + branches: [main] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Rust (nightly) + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustc, rust-src, cargo + + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '21' + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y make + + - name: Build all components + run: make all + + - name: Run integration tests + run: python3 Tester.py From 4bfbb01405d385e07870a87ad902ad94e361e9d0 Mon Sep 17 00:00:00 2001 From: MolecularPilot Date: Fri, 11 Apr 2025 15:40:37 +1000 Subject: [PATCH 2/2] rm CI from branches. was just needed for testing --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fddf98a..fd8dd39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main, ci] + branches: [main] pull_request: branches: [main]