Skip to content

linux-x64 dotnet-runtime build #6

linux-x64 dotnet-runtime build

linux-x64 dotnet-runtime build #6

name: linux-x64 dotnet-runtime build
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Test runtime build
run: |
git clone https://github.com/dotnet/runtime --single-branch --depth 1
cd runtime
sudo eng/common/native/install-dependencies.sh
./build.sh -c Release
- name: Upload artifacts
run: |
sudo apt install -y hub
# hub(1) requires release to be created inside a git repo
git clone https://${{ secrets.CLONE_TOKEN }}:[email protected]/${{ github.repository }}.git repo
cd repo
artifacts=" -a ../runtime/artifacts/packages/Debug/Shipping/dotnet-runtime-*.tar.gz"
artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Runtime.*-ci.nupkg"
artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Runtime.*-ci.symbols.nupkg"
artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.DotNet.ILCompiler.*-ci.nupkg"
artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/runtime.*.Microsoft.DotNet.ILCompiler.*-ci.nupkg"
artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Host.*-ci.nupkg"
artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Ref.*-ci.nupkg"
tag_name="linux_x64_$GITHUB_RUN_ID"
hub release create $artifacts -m "$tag_name" "$tag_name"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}