Skip to content

Update bits-info.sh #92

Update bits-info.sh

Update bits-info.sh #92

Workflow file for this run

---
# SPDX-FileCopyrightText: (c) 2024 ale5000
# SPDX-License-Identifier: GPL-3.0-or-later
name: "Tools tester"
permissions: {}
on:
push:
paths:
- ".github/workflows/tools-tester.yml"
- "tools/**"
pull_request:
paths:
- ".github/workflows/tools-tester.yml"
- "tools/**"
workflow_dispatch:
jobs:
base:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
- macos-13
name: "Tools test (${{ matrix.os }})"
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout sources"
uses: actions/checkout@v4
- name: "Test script on Bash"
shell: bash
run: |
# Testing script...
ls -1 '/usr/bin'/*sh*
printf '\n'
ls -1 '/bin'/*sh*
printf '\n'
bash --version | head -n 1
printf '\n%s\n\n' 'bits-info.sh:'
bash '${{ github.workspace }}/tools/bits-info.sh'
- name: "Test script on Oils (only under macOS-latest)"
if: "${{ matrix.os == 'macos-latest' }}"
shell: bash
run: |
# Testing script...
brew install --quiet oils-for-unix
printf '\n'
ls -l /opt/homebrew/bin/osh
ls -l /opt/homebrew/Cellar/oils-for-unix/0.23.0/bin/osh
ls -l /opt/homebrew/Cellar/oils-for-unix/0.23.0/bin/oils-for-unix
printf '\n'
readlink -f /opt/homebrew/bin/osh
realpath /opt/homebrew/bin/osh
osh -c 'readlink -f /opt/homebrew/bin/osh'
printf '\n'
osh --version | head -n 1
printf '\n%s\n\n' 'bits-info.sh:'
osh '${{ github.workspace }}/tools/bits-info.sh'