Added Run Commands for All Functions in README of 4_cv_basics/2_playing_with_images Folder #2
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: 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 |