-
Notifications
You must be signed in to change notification settings - Fork 102
89 lines (72 loc) · 1.99 KB
/
test-install-script.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
name: Test Install Script
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
- test-install-script
paths:
- '.github/workflows/test-install-script.yml'
- 'install.sh'
pull_request:
branches:
- main
paths:
- '.github/workflows/test-install-script.yml'
- 'install.sh'
jobs:
linux:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-22.04, archlinux]
include:
- os: ubuntu-latest
image: ubuntu:latest
- os: ubuntu-22.04
image: ubuntu:22.04
- os: archlinux
image: archlinux:latest
name: ${{ matrix.os }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Make install.sh Executable
run: chmod +x install.sh
- name: Run Installation Script
run: ./install.sh
wsl:
name: WSL
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up WSL2
uses: vedantmgoyal9/setup-wsl2@main
- name: Install dos2unix and Convert Line Endings
run: |
wsl sudo apt update -y
wsl sudo apt install dos2unix -y
wsl dos2unix "/mnt/d/a/Pixels_Seminar/Pixels_Seminar/install.sh" # Convert line endings
- name: Make Executable and Run Script
run: |
wsl chmod +x "/mnt/d/a/Pixels_Seminar/Pixels_Seminar/install.sh"
wsl bash "/mnt/d/a/Pixels_Seminar/Pixels_Seminar/install.sh" # Run the script
macos:
name: MacOS Latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Make install.sh Executable
run: chmod +x install.sh
- name: Run Installation Script
run: ./install.sh