Skip to content

Publish app on older ubuntu 20.04 #19

Publish app on older ubuntu 20.04

Publish app on older ubuntu 20.04 #19

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags: '*'
jobs:
Build:
strategy:
matrix:
include:
- os: ubuntu-20.04
platform: linux-x64
- os: ubuntu-20.04
platform: linux-musl-x64
- os: ubuntu-latest
platform: linux-arm64
- os: windows-latest
platform: win-x64
- os: windows-latest
platform: win-arm64
- os: macos-latest
platform: osx-x64
- os: macos-latest
platform: osx-arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install ARM Toolchain
if: ${{ matrix.platform == 'linux-arm64' }}
run: |
sudo dpkg --add-architecture arm64
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
EOF'
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
sudo apt update
sudo apt install -y clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
- name: Publish
run: dotnet publish -r ${{ matrix.platform }} --self-contained
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}
path: 'src/ReportPortal.GaugePlugin/bin/Release/net8.0/${{matrix.platform}}/*.zip'
compression-level: 0
Release:
environment:
name: GitHub Releases
url: https://github.com/reportportal/agent-net-gauge/releases
needs: Build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
- name: Upload GitHub Release
run: gh release upload ${{ github.ref_name }} ./**/*.zip --clobber --repo reportportal/agent-net-gauge
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}