From 100ae4f43b16b779baf385cf842ac0e50dd85e1c Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Mon, 19 Aug 2024 16:29:30 +0700 Subject: [PATCH 1/2] Add testing for debian --- .github/workflows/debian.yml | 72 ++++++++++++++++++++++++++++++------ 1 file changed, 60 insertions(+), 12 deletions(-) diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 8843fd5..4720fc9 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -1,28 +1,30 @@ -name: 'Debian' +name: "Debian" on: push: tags: - debian-*.*.* - + jobs: build: strategy: fail-fast: false matrix: - release: [ - {distro: "debian", version: "bookworm"}, - {distro: "debian", version: "trixie"} - ] - os: [ - {arch: "aarch64", builder: "ubicloud-standard-2-arm"}, - {arch: "x86_64", builder: "warp-ubuntu-latest-x64-2x"} - ] + release: + [ + { distro: "debian", version: "bookworm" }, + { distro: "debian", version: "trixie" }, + ] + os: + [ + { arch: "aarch64", builder: "ubicloud-standard-2-arm" }, + { arch: "x86_64", builder: "warp-ubuntu-latest-x64-2x" }, + ] runs-on: ${{matrix.os.builder}} env: ImageOS: ubuntu22 - steps: + steps: - name: Checkout uses: actions/checkout@v4 with: @@ -52,4 +54,50 @@ jobs: shell: alpine.sh {0} env: POLAR_AUTH_TOKEN: ${{ secrets.POLAR_AUTH_TOKEN }} - POLAR_ENDPOINT: ${{ vars.POLAR_ENDPOINT }} \ No newline at end of file + POLAR_ENDPOINT: ${{ vars.POLAR_ENDPOINT }} + + test: + needs: build + strategy: + max-parallel: 1 + fail-fast: false + matrix: + release: + [ + { distro: "debian", version: "bookworm", checks: "ipv4,ipv6" }, + { distro: "debian", version: "trixie", checks: "ipv4,ipv6" }, + ] + os: + [ + { arch: "aarch64", builder: "ubicloud-standard-2-arm" }, + { arch: "x86_64", builder: "warp-ubuntu-latest-x64-2x" }, + ] + + runs-on: ${{matrix.os.builder}} + env: + ImageOS: ubuntu22 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup IcePAK + uses: upmaru/icepak@v0 + with: + alpine: v3.19 + arch: ${{matrix.os.arch}} + + - name: Generate Serial + id: generate-serial + run: | + echo "serial=$(date +'%Y%m%d')-$GITHUB_RUN_NUMBER" >> $GITHUB_OUTPUT + + - name: Test + run: | + icepak validate --serial ${{ steps.generate-serial.outputs.serial }} --os ${{matrix.release.distro}} --arch ${{matrix.os.arch}} --release ${{matrix.release.version}} --variant default --checks ${{matrix.release.checks}} + shell: alpine.sh {0} + env: + POLAR_AUTH_TOKEN: ${{ secrets.POLAR_AUTH_TOKEN }} + POLAR_ENDPOINT: ${{ vars.POLAR_ENDPOINT }} + TESTING_IMAGE_SERVER: ${{ secrets.TESTING_IMAGE_SERVER }} From 8dffd45a35650d28602c8e8f36ebd487ee9b3ff7 Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Mon, 19 Aug 2024 16:30:09 +0700 Subject: [PATCH 2/2] Use icepak v1 --- .github/workflows/debian.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 4720fc9..4944b71 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -31,7 +31,7 @@ jobs: fetch-depth: 0 - name: Setup IcePAK - uses: upmaru/icepak@v0 + uses: upmaru/icepak@v1 with: alpine: v3.19 arch: ${{matrix.os.arch}} @@ -83,7 +83,7 @@ jobs: fetch-depth: 0 - name: Setup IcePAK - uses: upmaru/icepak@v0 + uses: upmaru/icepak@v1 with: alpine: v3.19 arch: ${{matrix.os.arch}}