Skip to content

[Feature]: Add shell script for installation and workflows for testin… #1

[Feature]: Add shell script for installation and workflows for testin…

[Feature]: Add shell script for installation and workflows for testin… #1

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