Skip to content

Commit

Permalink
use arch for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Oct 10, 2023
1 parent e2eb1a0 commit a273c22
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/Integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ on: [pull_request]
jobs:
tests:
name: ${{ matrix.make.name }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest # Specifies the runner environment
container:
image: archlinux:latest # Specifies that an Arch Linux container should be used for executing the job's steps

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [archlinux-latest] # This can be kept for naming consistency, but isn't functionally necessary
rust: [1.73.0]
make:
- name: Run integration tests # Integration tests
task: "(cd deployment && NODE_TYPE=LocalSecret ./gradlew jvmTest --build-cache --no-daemon)"
include:
- os: ubuntu-latest
sccache-path: /home/runner/.cache/sccache
sccache-path: [/home/runner/.cache/sccache]

env:
RUST_BACKTRACE: full
Expand Down Expand Up @@ -57,16 +58,34 @@ jobs:
distribution: 'zulu'
java-version: 11
cache: 'gradle'
- uses: ./.github/actions/install-rust
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Add wasm toolchain
run: |
rustup target add wasm32-unknown-unknown
- name: Wait for localsecret service to be ready
run: |
for i in {1..30}; do # tries for up to 30 times
if curl -s http://localhost:5000/faucet; then # replace /health with an actual endpoint if available
exit 0
fi
echo "Waiting for localsecret service to be ready..."
sleep 10 # waits for 10 seconds between retries
done
exit 1
- name: Install wasm-opt
run: |
sudo apt-get update
sudo apt-get install -y binaryen
pacman -Syu binaryen --noconfirm
- name: Install development tools
run: pacman -Syu base-devel --noconfirm
- name: Install Clang
run: pacman -Syu clang --noconfirm
- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: false
Expand Down

0 comments on commit a273c22

Please sign in to comment.