Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
github/actions: Add a workflow to build
✗ CI failure Lorenz Leutgeb committed 9 months ago
commit 67082b7aa0a0cad6a16e5e5ed88c06b9be0217cd
parent 7d2f0e387c66f3f24b94673a2de9589407e2f946
1 passed 1 failed (2 total) View logs
1 file changed +32 -0
added .github/workflows/build.yml
@@ -0,0 +1,32 @@
+
name: build
+
on:
+
  push: { branches: [ '*' ] }
+
  workflow_dispatch:
+
concurrency:
+
  group: ${{ github.sha }}
+
  cancel-in-progress: true
+
jobs:
+
  build:
+
    strategy:
+
      fail-fast: false
+
      matrix:
+
        os:
+
         - macos-latest       # arm64
+
         - ubuntu-latest-arm  # arm64
+
         - ubuntu-latest      # x64
+
         - windows-latest-arm # arm64
+
         - windows-latest     # x64
+
    runs-on: ${{ matrix.os }}
+
    steps:
+
      - uses: actions/checkout@v2
+
      - uses: dtolnay/rust-toolchain@stable
+
      - uses: actions/cache@v4
+
        with:
+
          path: ~/.cargo
+
          key: ${{ matrix.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}-cargo-home
+
      - uses: actions/cache@v4
+
        with:
+
          path: target
+
          key: ${{ matrix.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}-cargo-target
+
      - run: cargo build --workspace --verbose --all-features
+
      - run: cargo test  --workspace --verbose --all-features