github.com/yggdrasil-network/yggdrasil-go@v0.5.6/.github/workflows/pkg.yml (about) 1 name: Packages 2 3 on: 4 workflow_dispatch: 5 6 concurrency: 7 group: ${{ github.workflow }}-${{ github.ref }} 8 cancel-in-progress: true 9 10 jobs: 11 build-packages-debian: 12 strategy: 13 fail-fast: false 14 matrix: 15 pkgarch: ["amd64", "i386", "mips", "mipsel", "armhf", "armel", "arm64"] 16 17 name: Package (Debian, ${{ matrix.pkgarch }}) 18 19 runs-on: ubuntu-20.04 20 steps: 21 - uses: actions/checkout@v4 22 with: 23 fetch-depth: 0 24 25 - name: Set up Go 26 uses: actions/setup-go@v5 27 with: 28 go-version: "stable" 29 30 - name: Build package 31 env: 32 PKGARCH: ${{ matrix.pkgarch }} 33 run: sh contrib/deb/generate.sh 34 35 - name: Upload artifacts 36 uses: actions/upload-artifact@v4 37 with: 38 name: Debian package (${{ matrix.pkgarch }}) 39 path: "*.deb" 40 if-no-files-found: error 41 42 build-packages-macos: 43 strategy: 44 fail-fast: false 45 matrix: 46 pkgarch: ["amd64", "arm64"] 47 48 name: Package (macOS, ${{ matrix.pkgarch }}) 49 50 runs-on: macos-latest 51 steps: 52 - uses: actions/checkout@v4 53 with: 54 fetch-depth: 0 55 56 - name: Set up Go 57 uses: actions/setup-go@v5 58 with: 59 go-version: "stable" 60 61 - name: Build package 62 env: 63 PKGARCH: ${{ matrix.pkgarch }} 64 run: sh contrib/macos/create-pkg.sh 65 66 - name: Upload artifacts 67 uses: actions/upload-artifact@v4 68 with: 69 name: macOS package (${{ matrix.pkgarch }}) 70 path: "*.pkg" 71 if-no-files-found: error 72 73 build-packages-windows: 74 strategy: 75 fail-fast: false 76 matrix: 77 pkgarch: ["x64", "x86", "arm", "arm64"] 78 79 name: Package (Windows, ${{ matrix.pkgarch }}) 80 81 runs-on: windows-latest 82 steps: 83 - uses: actions/checkout@v4 84 with: 85 fetch-depth: 0 86 87 - name: Set up Go 88 uses: actions/setup-go@v5 89 with: 90 go-version: "stable" 91 92 - name: Setup .NET Core SDK 93 uses: actions/setup-dotnet@v4 94 95 - name: Build package 96 run: sh contrib/msi/build-msi.sh ${{ matrix.pkgarch }} 97 98 - name: Upload artifacts 99 uses: actions/upload-artifact@v4 100 with: 101 name: Windows package (${{ matrix.pkgarch }}) 102 path: "*.msi" 103 if-no-files-found: error 104 105 build-packages-router: 106 strategy: 107 fail-fast: false 108 matrix: 109 pkgarch: ["edgerouter-x", "edgerouter-lite", "vyos-amd64", "vyos-i386"] 110 111 name: Package (Router, ${{ matrix.pkgarch }}) 112 113 runs-on: ubuntu-20.04 114 steps: 115 - uses: actions/checkout@v4 116 with: 117 fetch-depth: 0 118 path: yggdrasil 119 120 - uses: actions/checkout@v4 121 with: 122 repository: neilalexander/vyatta-yggdrasil 123 path: vyatta-yggdrasil 124 125 - name: Set up Go 126 uses: actions/setup-go@v5 127 with: 128 go-version: "stable" 129 130 - name: Build package 131 env: 132 BUILDDIR_YGG: /home/runner/work/yggdrasil-go/yggdrasil-go/yggdrasil 133 run: cd /home/runner/work/yggdrasil-go/yggdrasil-go/vyatta-yggdrasil && ./build-${{ matrix.pkgarch }} 134 135 - name: Upload artifacts 136 uses: actions/upload-artifact@v4 137 with: 138 name: Router package (${{ matrix.pkgarch }}) 139 path: "/home/runner/work/yggdrasil-go/yggdrasil-go/vyatta-yggdrasil/*.deb" 140 if-no-files-found: error