Skip to content

Commit 4e115b5

Browse files
committed
add apk aarch64
1 parent 29e35c0 commit 4e115b5

1 file changed

Lines changed: 75 additions & 3 deletions

File tree

.github/workflows/builds.yml

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ jobs:
370370

371371
pkg-deb:
372372
strategy:
373+
fail-fast: false
373374
matrix:
374375
go-os: [linux]
375376
go-arch: [i386, x86_64, aarch64]
@@ -403,13 +404,33 @@ jobs:
403404
name: "${{ env.BIN }}.deb"
404405
path: "${{ env.BIN }}.deb"
405406
if-no-files-found: error
407+
408+
409+
install-deb:
410+
strategy:
411+
fail-fast: false
412+
matrix:
413+
go-os: [linux]
414+
go-arch: [x86_64]
415+
runs-on: ubuntu-latest
416+
container:
417+
image: debian:13
418+
needs: [get-version, pkg-deb]
419+
env:
420+
BIN: "snclient-${{needs.get-version.outputs.version}}-${{ matrix.go-os }}-${{ matrix.go-arch }}"
421+
steps:
422+
- uses: actions/download-artifact@v8
423+
with:
424+
name: "${{ env.BIN }}.deb"
406425
- run: |
407426
echo "Install test for ${{ env.BIN }}.deb"
408-
apt install -y ./${{ env.BIN }}.deb
427+
apt-get update
428+
apt-get install -y ./${{ env.BIN }}.deb
409429
410430
411431
pkg-rpm:
412432
strategy:
433+
fail-fast: false
413434
matrix:
414435
go-os: [linux]
415436
go-arch: [i386, x86_64, aarch64]
@@ -439,16 +460,34 @@ jobs:
439460
name: "${{ env.BIN }}.rpm"
440461
path: "${{ env.BIN }}.rpm"
441462
if-no-files-found: error
463+
464+
install-rpm:
465+
strategy:
466+
fail-fast: false
467+
matrix:
468+
go-os: [linux]
469+
go-arch: [x86_64]
470+
runs-on: ubuntu-latest
471+
container:
472+
image: rockylinux:9
473+
needs: [get-version, pkg-rpm]
474+
env:
475+
BIN: "snclient-${{needs.get-version.outputs.version}}-${{ matrix.go-os }}-${{ matrix.go-arch }}"
476+
steps:
477+
- uses: actions/download-artifact@v8
478+
with:
479+
name: "${{ env.BIN }}.rpm"
442480
- run: |
443481
echo "Install test for ${{ env.BIN }}.rpm"
444482
dnf install -y ./${{ env.BIN }}.rpm
445483
446484
447485
pkg-apk:
448486
strategy:
487+
fail-fast: false
449488
matrix:
450489
go-os: [linux]
451-
go-arch: [x86_64]
490+
go-arch: [x86_64, aarch64]
452491
runs-on: ubuntu-latest
453492
container:
454493
image: alpine:latest
@@ -490,19 +529,41 @@ jobs:
490529
RSA_FOR_PACKAGE_SIGNATURE: ${{ secrets.RSA_FOR_PACKAGE_SIGNATURE }}
491530
- run: |
492531
echo "Building ${{ env.BIN }}.apk"
532+
if [ ${{matrix.go-arch }} = "aarch64" ]; then
533+
export CHOST="aarch64"
534+
export CTARGET="aarch64"
535+
fi
493536
GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} VERSION=${{needs.get-version.outputs.version}} make apk
494537
mv snclient*.apk ${{ env.BIN }}.apk
495538
- uses: actions/upload-artifact@v7.0.0
496539
with:
497540
name: "${{ env.BIN }}.apk"
498541
path: "${{ env.BIN }}.apk"
499542
if-no-files-found: error
543+
544+
install-apk:
545+
strategy:
546+
fail-fast: false
547+
matrix:
548+
go-os: [linux]
549+
go-arch: [x86_64]
550+
runs-on: ubuntu-latest
551+
container:
552+
image: alpine:latest
553+
needs: [get-version, pkg-apk]
554+
env:
555+
BIN: "snclient-${{needs.get-version.outputs.version}}-${{ matrix.go-os }}-${{ matrix.go-arch }}"
556+
steps:
557+
- uses: actions/download-artifact@v8
558+
with:
559+
name: "${{ env.BIN }}.apk"
500560
- run: |
501561
echo "Install test for ${{ env.BIN }}.apk"
502562
apk add ./${{ env.BIN }}.apk
503563
504564
pkg-osx:
505565
strategy:
566+
fail-fast: false
506567
matrix:
507568
go-os: [darwin]
508569
go-arch: [x86_64, aarch64]
@@ -542,6 +603,7 @@ jobs:
542603
# remove those artifacts which have been converted to .deb or .rpm files
543604
clean-tmp-files:
544605
strategy:
606+
fail-fast: false
545607
matrix:
546608
go-os: [linux]
547609
go-arch: [i386, x86_64, aarch64]
@@ -557,6 +619,7 @@ jobs:
557619

558620
integration-test-linux:
559621
strategy:
622+
fail-fast: false
560623
matrix:
561624
go-os: [linux]
562625
go-arch: [x86_64]
@@ -581,6 +644,7 @@ jobs:
581644
582645
integration-test-osx:
583646
strategy:
647+
fail-fast: false
584648
matrix:
585649
go-os: [darwin]
586650
go-arch: [x86_64]
@@ -605,6 +669,7 @@ jobs:
605669
606670
integration-test-windows:
607671
strategy:
672+
fail-fast: false
608673
matrix:
609674
go-os: [windows]
610675
go-arch: [x86_64]
@@ -651,6 +716,7 @@ jobs:
651716
652717
clean-tmp-winbin:
653718
strategy:
719+
fail-fast: false
654720
matrix:
655721
go-os: [windows]
656722
go-arch: [i386, x86_64, aarch64]
@@ -686,6 +752,7 @@ jobs:
686752
upload-windows-release-assets:
687753
if: startsWith(github.ref, 'refs/tags/')
688754
strategy:
755+
fail-fast: false
689756
matrix:
690757
go-os: [windows]
691758
go-arch: [i386, x86_64, aarch64]
@@ -707,6 +774,7 @@ jobs:
707774
upload-linux-deb-assets:
708775
if: startsWith(github.ref, 'refs/tags/')
709776
strategy:
777+
fail-fast: false
710778
matrix:
711779
go-os: [linux]
712780
go-arch: [i386, x86_64, aarch64]
@@ -728,6 +796,7 @@ jobs:
728796
upload-linux-rpm-assets:
729797
if: startsWith(github.ref, 'refs/tags/')
730798
strategy:
799+
fail-fast: false
731800
matrix:
732801
go-os: [linux]
733802
go-arch: [i386, x86_64, aarch64]
@@ -749,9 +818,10 @@ jobs:
749818
upload-linux-apk-assets:
750819
if: startsWith(github.ref, 'refs/tags/')
751820
strategy:
821+
fail-fast: false
752822
matrix:
753823
go-os: [linux]
754-
go-arch: [x86_64]
824+
go-arch: [x86_64, aarch64]
755825
runs-on: ubuntu-latest
756826
needs: [get-version,make-release]
757827
permissions:
@@ -770,6 +840,7 @@ jobs:
770840
upload-osx-pkg-assets:
771841
if: startsWith(github.ref, 'refs/tags/')
772842
strategy:
843+
fail-fast: false
773844
matrix:
774845
go-os: [darwin]
775846
go-arch: [x86_64, aarch64]
@@ -791,6 +862,7 @@ jobs:
791862
upload-binary-release-assets:
792863
if: startsWith(github.ref, 'refs/tags/')
793864
strategy:
865+
fail-fast: false
794866
matrix:
795867
go-os: [freebsd]
796868
go-arch: [i386, x86_64, aarch64]

0 commit comments

Comments
 (0)