-
Notifications
You must be signed in to change notification settings - Fork 2
156 lines (137 loc) · 5.59 KB
/
run-ubuntu-matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
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@v4
with:
repository: RavEngine/Samples
ref: master
submodules: true
# - name: check apt sources
# run: |
# cat config/crosscomp-sources.list
# cat /etc/apt/sources.list
# - name: setup deb822 repos
# run: |
# if [[ $ImageOS == "ubuntu24" ]]; then
# cat <<EOF > deb822sources
# Types: deb
# URIs: http://archive.ubuntu.com/ubuntu/
# Suites: noble
# Components: main restricted universe
# Architectures: amd64
# Types: deb
# URIs: http://security.ubuntu.com/ubuntu/
# Suites: noble-security
# Components: main restricted universe
# Architectures: amd64
# Types: deb
# URIs: http://archive.ubuntu.com/ubuntu/
# Suites: noble-updates
# Components: main restricted universe
# Architectures: amd64
# Types: deb
# URIs: http://azure.ports.ubuntu.com/ubuntu-ports/
# Suites: noble
# Components: main restricted multiverse universe
# Architectures: arm64
# Types: deb
# URIs: http://azure.ports.ubuntu.com/ubuntu-ports/
# Suites: noble-updates
# Components: main restricted multiverse universe
# Architectures: arm64
# EOF
# sudo mv deb822sources /etc/apt/sources.list.d/ubuntu.sources
# else
# sudo mv config/crosscomp-sources.list /etc/apt/sources.list
# fi
# - 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: Install Host Dependencies
# run: sudo apt-get install cmake:amd64 fuse:amd64 libfuse2:amd64 ninja-build:amd64 libx11-dev:amd64 libgl1-mesa-dev gcc-12:amd64 g++-12:amd64 gcc-12-aarch64-linux-gnu:amd64 g++-12-aarch64-linux-gnu:amd64 -y --no-install-recommends
# - name: Install Target Dependencies
# run: sudo apt-get install libgl1-mesa-dev:arm64 uuid-dev:arm64 libasound2-dev:arm64 libx11-dev:arm64 libxext-dev:arm64 libxrender-dev:arm64 libxrandr-dev:arm64 libxtst-dev:arm64 libxt-dev:arm64 libegl1-mesa-dev:arm64 libx11-xcb-dev:arm64 libxcb-dri2-0-dev:arm64 libxcb-glx0-dev:arm64 libxcb-icccm4-dev:arm64 libxcb-keysyms1-dev:arm64 libxcb-randr0-dev:arm64 libxrandr-dev:arm64 libxxf86vm-dev:arm64 mesa-common-dev:arm64 libwayland-dev:arm64 -y --no-install-recommends
# - name: Configure
# run: |
# mkdir -p build
# mkdir -p build/linuxarm
# cd build/linuxarm
# CC=/usr/bin/aarch64-linux-gnu-gcc-12 CXX=/usr/bin/aarch64-linux-gnu-g++-12 cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_SYSTEM_NAME=Linux -DRAVENGINE_BUILD_TESTS=OFF ../..
# - name: Build
# run: cd build/linuxarm && cmake --build . --config release --target install
# - name: Upload Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: RavEngine_Samples_linuxARM
# path: build/linuxarm/Release/*.AppImage
# - 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