Skip to content

Build dotnet with GitHub Actions #20

Build dotnet with GitHub Actions

Build dotnet with GitHub Actions #20

Workflow file for this run

name: Build dotnet
on:
push:
branches:
- main
pull_request: # XXX
jobs:
toolchain:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ppc64le, s390x, x64]
container:
image: ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest
credentials:
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PASSWORD }}
steps:
- name: Configure git
run: git config --global user.email [email protected] &&
git config --global user.name "dotnet-s390x bot"
- name: Clone # actions/checkout is not compatible with Ubuntu 18.04
run: git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" dotnet-s390x &&
cd dotnet-s390x &&
git fetch origin "$GITHUB_REF" &&
git checkout FETCH_HEAD
- name: Prepare
run: cd dotnet-s390x && ./dotnet-prepare
- name: Build
run: cd dotnet-s390x && ARCH=${{ matrix.arch }} NO_SAVE_TEMPS=1 ./dotnet-build