From ca8101273e9ffb8cb037cc65ce892866697a9927 Mon Sep 17 00:00:00 2001 From: Daniel Carbone Date: Thu, 14 Nov 2024 19:38:37 -0600 Subject: [PATCH] trying out posix sh (#14) * trying out posix sh --- .github/workflows/tests.yaml | 56 ++++++++++++++++++++++++++++++++++++ scripts/unixish-17.sh | 2 +- scripts/unixish.sh | 4 +-- 3 files changed, 59 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 189d587..dd38ef3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -42,38 +42,94 @@ jobs: include: - image: "ubuntu-latest" version: '1.6' + force: true + - image: "ubuntu-latest" + version: '1.6' + force: false - image: "ubuntu-latest" version: '1.5' + force: true + - image: "ubuntu-latest" + version: '1.5' + force: false - image: "ubuntu-20.04" version: '1.6' + force: true + - image: "ubuntu-20.04" + version: '1.6' + force: false - image: "ubuntu-20.04" version: '1.5' + force: true + - image: "ubuntu-20.04" + version: '1.5' + force: false - image: "ubuntu-22.04" version: '1.6' + force: true + - image: "ubuntu-22.04" + version: '1.6' + force: false - image: "ubuntu-22.04" version: '1.5' + force: true + - image: "ubuntu-22.04" + version: '1.5' + force: false - image: "ubuntu-24.04" version: '1.6' + force: true + - image: "ubuntu-24.04" + version: '1.6' + force: false - image: "ubuntu-24.04" version: '1.5' + force: true + - image: "ubuntu-24.04" + version: '1.5' + force: false - image: "windows-latest" version: '1.6' + force: true + - image: "windows-latest" + version: '1.6' + force: false - image: "windows-latest" version: '1.5' + force: true + - image: "windows-latest" + version: '1.5' + force: false - image: "windows-2019" version: '1.6' + force: true + - image: "windows-2019" + version: '1.6' + force: false - image: "windows-2019" version: '1.5' + force: true + - image: "windows-2019" + version: '1.5' + force: false - image: "windows-2022" version: '1.6' + force: true + - image: "windows-2022" + version: '1.6' + force: false - image: "windows-2022" version: '1.5' + force: true + - image: "windows-2022" + version: '1.5' + force: false name: "Test Action - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})" runs-on: ${{ matrix.image }} diff --git a/scripts/unixish-17.sh b/scripts/unixish-17.sh index ba1f454..0e9f59f 100755 --- a/scripts/unixish-17.sh +++ b/scripts/unixish-17.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh set -e diff --git a/scripts/unixish.sh b/scripts/unixish.sh index c6edc4b..73b4115 100755 --- a/scripts/unixish.sh +++ b/scripts/unixish.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh set -e @@ -54,7 +54,7 @@ esac # determine binary name -if [[ "${_os}" == "linux" ]]; then +if [ "${_os}" = "linux" ]; then case "${_arch}" in '386') _bin_name="jq-linux32"