freebsd-x64 dotnet-runtime build #114
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: freebsd-x64 dotnet-runtime build | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| coreclr_Debug: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Remove unnecessary files | |
| run: df -h; sudo rm -rf "$AGENT_TOOLSDIRECTORY"; df -h | |
| - name: runtime+libs+packs build | |
| run: | | |
| git clone https://github.com/jkoritzinsky/runtime --single-branch --depth 1 -b import-ordering | |
| cd runtime | |
| git config --global user.email ci@example.com | |
| git config --global user.name ci | |
| git merge --no-ff c4b3d81df13b843ae7bbd8c4b156bd12ccb908f7 | |
| git checkout HEAD~1 eng/packaging.targets | |
| docker run --rm -v$(pwd):/runtime -e ROOTFS_DIR=/crossrootfs/x64 \ | |
| mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64-freebsd-14 \ | |
| sh -c ' | |
| /runtime/build.sh -ci -arch x64 -os freebsd -cross -s clr+libs+host -c Debug -rc Checked -p:StageOneBuild=true --keepnativesymbols true && | |
| /runtime/build.sh -ci -arch x64 -os freebsd -cross -s tools+clr.tools+packs -c Debug -rc Checked --keepnativesymbols true -p:StageTwoBuild=true && | |
| tdnf install -y file unzip && cd /tmp && | |
| find /runtime/artifacts/bin -name "libcdacreader*" -exec file {} \; | |
| ' | |
| # sh -c '/runtime/build.sh clr+libs+packs -c Debug -os freebsd -cross && | |
| # tdnf install -y file unzip && cd /tmp && | |
| # unzip /runtime/artifacts/packages/Debug/Shipping/runtime.freebsd-x64.Microsoft.DotNet.ILCompiler.9.0.0-dev.nupkg && | |
| # find . -name ilc -exec file {} \;' | |
| # ./dotnet.sh build -v:diag -c Debug -p:TargetOS=freebsd -p:CrossBuild=true src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj' | |
| - 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=" -a ../runtime/artifacts/packages/Debug/Shipping/dotnet-runtime-*-ci-freebsd-x64.tar.gz" | |
| artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Runtime.freebsd-x64.*-ci.nupkg" | |
| artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Runtime.freebsd-x64.*-ci.symbols.nupkg" | |
| artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.DotNet.ILCompiler.*-ci.nupkg" | |
| artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/runtime.freebsd-x64.Microsoft.DotNet.ILCompiler.*-ci.nupkg" | |
| artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Host.freebsd-x64.*-ci.nupkg" | |
| artifacts+=" -a ../runtime/artifacts/packages/Debug/Shipping/Microsoft.NETCore.App.Ref.*-ci.nupkg" | |
| tag_name="freebsd_$GITHUB_RUN_ID" | |
| hub release create $artifacts -m "$tag_name" "$tag_name" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # artifacts+=" -a ../runtime/artifacts/bin/coreclr/freebsd.x64.Checked/corehost/singlefilehost.dbg" |