run-ubuntu-matrix #37
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: run-ubuntu-matrix | |
on: | |
workflow_dispatch: | |
# inputs: | |
# TYPE: | |
# description: 'TYPE' | |
# required: true | |
# IMAGE_NAME: | |
# description: 'Image name' | |
# required: false | |
# schedule: | |
# - cron: '0/5 * * * *' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
repository: RavEngine/Samples | |
ref: main | |
submodules: true | |
- name: check apt sources | |
run: | | |
cat config/crosscomp-sources.list | |
cat /etc/apt/sources.list | |
- name: setup repos | |
run: | | |
sudo mv config/crosscomp-sources.list /etc/apt/sources.list | |
- name: add arm64 | |
run: | | |
sudo dpkg --add-architecture arm64 | |
- name: Update Apt | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
# - name: Run Azure PowerShell script | |
# uses: azure/powershell@v2 | |
# with: | |
# inlineScript: | | |
# Get-Module -ListAvailable | FT Name, Version | |
# azPSVersion: "9.3.0" | |
# - name: PWSH as a shell | |
# run: | | |
# $env:PSModulePath += ":/usr/share/" | |
# Get-Module -ListAvailable | FT Name, Version | |
# shell: pwsh | |
# - run: | | |
# id -u | |
# id -g | |
# ls -la $HOME | |
# ls -la $HOME/.docker | |
# cat $HOME/.docker/config.json | |
# echo "====ETC====" | |
# ls -la /etc | |
# echo "====Opt====" | |
# ls -la /opt | |
# - run: | | |
# echo 'Hosts file:' | |
# cat /etc/hosts | |
# - run: | | |
# sudo apt-get update | |
# sudo apt-get install build-essential | |
# sudo apt-get install libsdl2-dev | |
# sudo apt-get install libsdl2-net-dev | |
# sudo apt-get install libglm-dev | |
# - name: check nuget conf | |
# run: | | |
# which nuget | |
# nuget config -set maxHttpRequestsPerSource=64 | |
# ls -la ~/.config/NuGet | |
# cat ~/.config/NuGet/NuGet.Config | |
# - name: Adding markdown 1 | |
# shell: pwsh | |
# run: | | |
# if ("${{ inputs.TYPE }}" -eq "qq") { | |
# $imageName = "${{ inputs.IMAGE_NAME }}" | |
# } | |
# "## Details" >> $env:GITHUB_STEP_SUMMARY | |
# "| Source | Image Name | VM Name | VM User | Resource Group |" >> $env:GITHUB_STEP_SUMMARY | |
# "| ------------ | ------------- | ------------- | ----------- | ------------------- |" >> $env:GITHUB_STEP_SUMMARY | |
# "| ee | $imageName | ee | ee | ee |" >> $env:GITHUB_STEP_SUMMARY | |
# " " >> $env:GITHUB_STEP_SUMMARY | |
# - name: Adding markdown 2 | |
# run: echo '### Hello world2! :rocket:<br /> from ${{ matrix.os }}' >> $GITHUB_STEP_SUMMARY |