# debianrepo ensures we can install on debian with the official build instructions
name: linux
on:
  push:
    branches:
      - "release/**"

jobs:
  test_386:
    runs-on: "ubuntu-20.04"
    steps:
      - uses: actions/checkout@v2
      - run: ./E2E/debian.sh docker i386

  test_amd64:
    runs-on: "ubuntu-20.04"
    steps:
      - uses: actions/checkout@v2
      - run: ./E2E/debian.sh docker amd64

  test_arm:
    runs-on: "ubuntu-20.04"
    steps:
      - uses: actions/checkout@v2
      - run: sudo apt-get update -q
      - run: sudo apt-get install -y qemu-user-static
      - run: ./E2E/debian.sh docker armhf

  build_arm64:
    runs-on: "ubuntu-20.04"
    steps:
      - uses: actions/checkout@v2
      - run: sudo apt-get update -q
      - run: sudo apt-get install -y qemu-user-static
      - run: ./E2E/debian.sh docker arm64