2022-09-24 15:38:14 +03:00
|
|
|
name: Packages
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-packages-debian:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
pkgarch: ["amd64", "i386", "mips", "mipsel", "armhf", "armel", "arm64"]
|
|
|
|
|
|
|
|
name: Package (Debian, ${{ matrix.pkgarch }})
|
|
|
|
|
2023-10-24 14:10:48 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2022-09-24 15:38:14 +03:00
|
|
|
steps:
|
2024-05-28 00:14:28 +03:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
2024-05-28 00:03:41 +03:00
|
|
|
uses: actions/setup-go@v5
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
2024-05-28 00:03:41 +03:00
|
|
|
go-version: "stable"
|
2022-09-24 15:38:14 +03:00
|
|
|
|
|
|
|
- name: Build package
|
|
|
|
env:
|
|
|
|
PKGARCH: ${{ matrix.pkgarch }}
|
|
|
|
run: sh contrib/deb/generate.sh
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
2024-05-28 00:14:28 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
name: Debian package (${{ matrix.pkgarch }})
|
|
|
|
path: "*.deb"
|
|
|
|
if-no-files-found: error
|
|
|
|
|
|
|
|
build-packages-macos:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
pkgarch: ["amd64", "arm64"]
|
|
|
|
|
|
|
|
name: Package (macOS, ${{ matrix.pkgarch }})
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2024-05-28 00:14:28 +03:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
2024-05-28 00:03:41 +03:00
|
|
|
uses: actions/setup-go@v5
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
2024-05-28 00:03:41 +03:00
|
|
|
go-version: "stable"
|
2022-09-24 15:38:14 +03:00
|
|
|
|
|
|
|
- name: Build package
|
|
|
|
env:
|
|
|
|
PKGARCH: ${{ matrix.pkgarch }}
|
|
|
|
run: sh contrib/macos/create-pkg.sh
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
2024-05-28 00:14:28 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
name: macOS package (${{ matrix.pkgarch }})
|
|
|
|
path: "*.pkg"
|
|
|
|
if-no-files-found: error
|
|
|
|
|
|
|
|
build-packages-windows:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
pkgarch: ["x64", "x86", "arm", "arm64"]
|
|
|
|
|
|
|
|
name: Package (Windows, ${{ matrix.pkgarch }})
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2024-05-28 00:14:28 +03:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
2024-05-28 00:03:41 +03:00
|
|
|
uses: actions/setup-go@v5
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
2024-05-28 00:03:41 +03:00
|
|
|
go-version: "stable"
|
2022-09-24 15:38:14 +03:00
|
|
|
|
2024-05-28 00:52:48 +03:00
|
|
|
- name: Setup .NET Core SDK
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
|
2022-09-24 15:38:14 +03:00
|
|
|
- name: Build package
|
|
|
|
run: sh contrib/msi/build-msi.sh ${{ matrix.pkgarch }}
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
2024-05-28 00:14:28 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
name: Windows package (${{ matrix.pkgarch }})
|
|
|
|
path: "*.msi"
|
|
|
|
if-no-files-found: error
|
|
|
|
|
|
|
|
build-packages-router:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
pkgarch: ["edgerouter-x", "edgerouter-lite", "vyos-amd64", "vyos-i386"]
|
|
|
|
|
|
|
|
name: Package (Router, ${{ matrix.pkgarch }})
|
|
|
|
|
2023-10-25 00:44:33 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2022-09-24 15:38:14 +03:00
|
|
|
steps:
|
2024-05-28 00:14:28 +03:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
path: yggdrasil
|
|
|
|
|
2024-05-28 00:14:28 +03:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
repository: neilalexander/vyatta-yggdrasil
|
|
|
|
path: vyatta-yggdrasil
|
|
|
|
|
|
|
|
- name: Set up Go
|
2024-05-28 00:03:41 +03:00
|
|
|
uses: actions/setup-go@v5
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
2024-05-28 00:03:41 +03:00
|
|
|
go-version: "stable"
|
2022-09-24 15:38:14 +03:00
|
|
|
|
|
|
|
- name: Build package
|
|
|
|
env:
|
|
|
|
BUILDDIR_YGG: /home/runner/work/yggdrasil-go/yggdrasil-go/yggdrasil
|
|
|
|
run: cd /home/runner/work/yggdrasil-go/yggdrasil-go/vyatta-yggdrasil && ./build-${{ matrix.pkgarch }}
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
2024-05-28 00:14:28 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-09-24 15:38:14 +03:00
|
|
|
with:
|
|
|
|
name: Router package (${{ matrix.pkgarch }})
|
|
|
|
path: "/home/runner/work/yggdrasil-go/yggdrasil-go/vyatta-yggdrasil/*.deb"
|
|
|
|
if-no-files-found: error
|