-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
99 lines (93 loc) · 3.71 KB
/
.gitlab-ci.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
Github-Repo-Sync:
tags:
- Github-Repo-Sync
stage: .pre
script:
- echo "Hello World"
- git fetch origin
- git remote -v | grep -w github || git remote add foo git@github.com:ravi688/VulkanRenderer.git
- git remote set-url github git@github.com:ravi688/VulkanRenderer.git
- git fetch github
- git checkout -B github/VulkanRenderer/main
- git pull origin main --ff
- git branch -u github/main
- git rebase origin/main
- git push github HEAD:main
# Runs on My Dev Machine only, no correspondoing linux dual boot
Windows-AMD-Nvidia-GPU:
tags:
- Windows-AMD-Nvidia-GPU
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'MINGW64' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -S git mingw-w64-x86_64-gcc make mingw-w64-x86_64-shaderc mingw-w64-x86_64-libpng'
- C:\msys64\usr\bin\bash -lc './ci-build.sh'
# Runs on AMD GPU machine with Linux Mint operating system (dual-booted with Windows 11)
Linux-AMD-GPU:
tags:
- Linux-AMD-GPU
stage: build
script:
- echo "Hello World"
- sudo apt-get update
- sudo apt-get install build-essential
- sudo apt-get install -y libz-dev
- sudo apt-get install -y libpng-dev
- sudo apt-get install -y libbrotli-dev
- sudo chmod +x ./ci-build.sh
- ./ci-build.sh
# reboot to windows
- sudo chmod +x ./switch-to-windows.sh
- ./switch-to-windows.sh
# Runs on Intel GPU machine with Linux Mint operating system (dual-booted with Windows 11)
Linux-Intel-GPU:
tags:
- Linux-Intel-GPU
stage: build
script:
- echo "Hello World"
- sudo apt-get update
- sudo apt-get install build-essential
- sudo apt-get install -y libz-dev
- sudo apt-get install -y libpng-dev
- sudo apt-get install -y libbrotli-dev
- sudo chmod +x ./ci-build.sh
- ./ci-build.sh
# reboot to windows
- sudo chmod +x ./switch-to-windows.sh
- ./switch-to-windows.sh
# Runs on AMD GPU machine with Windows 11 operating system (dual-booted with Linux Mint)
Windows-AMD-GPU:
tags:
- Windows-AMD-GPU
stage: build
script:
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'MINGW64' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -S git mingw-w64-x86_64-gcc make mingw-w64-x86_64-shaderc mingw-w64-x86_64-libpng'
- C:\msys64\usr\bin\bash -lc './ci-build.sh'
# reboot to linux
- shutdown /r
# Runs on Intel GPU machine with Windows 11 operating system (dual-booted with Linux Mint)
Windows-Intel-GPU:
tags:
- Windows-Intel-GPU
stage: build
script:
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'MINGW64' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -S git mingw-w64-x86_64-gcc make mingw-w64-x86_64-shaderc mingw-w64-x86_64-libpng'
- C:\msys64\usr\bin\bash -lc './ci-build.sh'
# reboot to linux
- shutdown /r