Add GitHub Actions #1
Workflow file for this run
This file contains 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: CI | |
on: [push, pull_request] | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install ca-certificates gnupg | |
sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list | |
sudo apt-get update | |
sudo apt-get install dotnet-sdk-7.0 make mono-devel | |
- name: make FNA | |
run: | | |
make debug | |
make release | |
- name: msbuild FNA | |
run: | | |
msbuild FNA.sln /p:Configuration=Debug /p:Platform=x86 | |
msbuild FNA.sln /p:Configuration=Release /p:Platform=x86 | |
- name: dotnet build FNA.Core | |
run: | | |
dotnet build -c Debug FNA.Core.csproj | |
dotnet build -c Release FNA.Core.csproj | |
- name: dotnet build FNA.NetFramework | |
run: | | |
dotnet build -c Debug FNA.NetFramework.csproj | |
dotnet build -c Release FNA.NetFramework.csproj | |
- name: dotnet build FNA.NetStandard | |
run: | | |
dotnet build -c Debug FNA.NetStandard.csproj | |
dotnet build -c Release FNA.NetStandard.csproj |