Skip to content

linux-x64 dotnet-runtime build #9

linux-x64 dotnet-runtime build

linux-x64 dotnet-runtime build #9

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/jkoritzinsky/runtime --single-branch --depth 1 -b import-ordering
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 }}:x-oauth-basic@github.com/${{ github.repository }}.git repo
cd repo
artifacts=""
for file in $(find ../runtime/artifacts/packages \( -name "*.tar.gz" -o -name "*.nupkg" \)); do
artifacts+=" -a $file"
done
tag_name="linux_x64_$GITHUB_RUN_ID"
hub release create $artifacts -m "$tag_name" "$tag_name"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}