Skip to content

Commit

Permalink
Merge pull request zcash#6854 from zcash/debian_ci
Browse files Browse the repository at this point in the history
Add support for Debian in GitHub Actions
  • Loading branch information
Yasser Isa authored Apr 9, 2024
2 parents f52c007 + 54ce429 commit fcc73e6
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/gcs-download-cloud-storage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ runs:
- name: Move source to target [Unix]
if: runner.os != 'Windows'
shell: bash
run: mv ${{ runner.temp }}/gcs-download/* ${{ inputs.destination }}
run: mv $RUNNER_TEMP/gcs-download/* ${{ inputs.destination }}

# PowerShell's mv aliases to its Move-Item cmdlet which has glob support (unlike mv in
# Git Bash for whatever reason).
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,39 @@ jobs:
setup:
name: Define CI matrix
runs-on: ubuntu-latest
container:
image: electriccoinco/debian-helper:bookworm
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
strategy:
matrix:
cfg:
- data:
- name: Debian-bookworm
tier: 1
platform: Debian Bookworm
build_os: ubuntu-20.04-8cores
test_os: ubuntu-20.04
container: electriccoinco/debian-helper:bookworm
host: x86_64-pc-linux-gnu

- name: Debian-bullseye
tier: 1
platform: Debian bullseye
build_os: ubuntu-20.04-8cores
test_os: ubuntu-20.04
container: electriccoinco/debian-helper:bullseye
host: x86_64-pc-linux-gnu

- name: Debian-buster
tier: 1
platform: Debian buster
build_os: ubuntu-20.04-8cores
test_os: ubuntu-20.04
container: electriccoinco/debian-helper:buster
host: x86_64-pc-linux-gnu

- name: ubuntu-20.04
tier: 1
platform: Ubuntu 20.04
Expand Down Expand Up @@ -106,6 +135,11 @@ jobs:
name: Build tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: setup
runs-on: ${{ matrix.build_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier == 3 }}
strategy:
matrix:
Expand Down Expand Up @@ -249,6 +283,11 @@ jobs:
name: Bitrot check tier ${{ matrix.tier }} platform ${{ matrix.platform }} flag '${{ matrix.configure_flag }}'
needs: [setup, build]
runs-on: ${{ matrix.build_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier == 3 }}
strategy:
matrix:
Expand Down Expand Up @@ -314,6 +353,11 @@ jobs:
name: Boost.Test tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand Down Expand Up @@ -344,6 +388,11 @@ jobs:
name: GoogleTest tier ${{ matrix.tier }} platform ${{ matrix.platform }} - shard ${{ matrix.shard_index }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand Down Expand Up @@ -397,6 +446,11 @@ jobs:
name: Rust test tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand All @@ -412,6 +466,11 @@ jobs:
name: secp256k1 tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand Down Expand Up @@ -450,6 +509,11 @@ jobs:
name: univalue tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand Down Expand Up @@ -492,6 +556,11 @@ jobs:
name: util-test tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand Down Expand Up @@ -533,6 +602,11 @@ jobs:
name: not-dot-so tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand Down Expand Up @@ -563,6 +637,11 @@ jobs:
name: sec-hard tier ${{ matrix.tier }} platform ${{ matrix.platform }}
needs: [setup, build]
runs-on: ${{ matrix.test_os }}
container:
image: ${{ matrix.container }}
env:
HOME: /root
PATH: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
continue-on-error: ${{ matrix.tier != 1 }}
strategy:
matrix:
Expand Down

0 comments on commit fcc73e6

Please sign in to comment.