Skip to content

Commit

Permalink
Fix INCLUDE envvar tests, change other workflow things again
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwdv committed Feb 1, 2023
1 parent 6e85b36 commit f6ea4a0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
version: [ latest, 1.67.* ]
version: [ latest, 1.73.* ]

runs-on: ${{ matrix.os }}

Expand All @@ -73,12 +73,17 @@ jobs:
with:
edition: fasm1
version: ${{ matrix.version }}
- run: (fasm.x64 || fasm || fasm.o || fasm.exe) 2>&1 | grep -qF 'flat assembler version ${{ steps.fasm.outputs.version }}'
- name: Check installed version
run: |
(fasm.x64 || fasm || fasm.o || FASM.EXE) 2>/dev/null || true
(fasm.x64 || fasm || fasm.o || FASM.EXE) 2>&1 | grep -qF 'flat assembler version ${{ steps.fasm.outputs.version }}'
shell: sh
- name: Check INCLUDE envvar
if: matrix.os == 'windows-latest'
run: |
echo INCLUDE = $INCLUDE
[ -d "$INCLUDE" ]
shell: sh

test-fasmg:
name: Test install latest fasm g version
Expand All @@ -103,7 +108,10 @@ jobs:
edition: fasmg
fasmg-download-packages: true
fasmg-include-packages: utility, x86
- run: (fasmg.x64 || fasmg || fasmg.o || fasmg.exe) 2>&1 | grep -qF 'flat assembler version g.${{ steps.fasm.outputs.version }}'
- name: Check installed version
run: |
(fasmg.x64 || fasmg || fasmg.o || fasmg.exe) 2>/dev/null || true
(fasmg.x64 || fasmg || fasmg.o || fasmg.exe) 2>&1 | grep -qF 'flat assembler version g.${{ steps.fasm.outputs.version }}'
shell: sh
- name: Check INCLUDE envvar
run: |
Expand All @@ -115,6 +123,7 @@ jobs:
[ -d "$dir" ] # Exists and is directory?
done
[ ${#dirs[@]} -eq 3 ] # 3 items (packages root, utility, x86)
shell: bash

test-fasmarm:
name: Test install latest FASMARM version
Expand All @@ -137,9 +146,13 @@ jobs:
uses: ./
with:
edition: fasmarm
- run: (fasmarm.x64 || fasmarm || fasmarm.o || fasmarm.exe) 2>&1 | grep -qF 'flat assembler for ARM'
- name: Check installed version
run: |
(fasmarm.x64 || fasmarm || fasmarm.o || FASMARM.EXE) 2>/dev/null || true
(fasmarm.x64 || fasmarm || fasmarm.o || FASMARM.EXE) 2>&1 | grep -qF 'flat assembler for ARM'
shell: sh
- name: Check INCLUDE envvar
run: |
echo INCLUDE = $INCLUDE
[ -d "$INCLUDE" ]
shell: bash

0 comments on commit f6ea4a0

Please sign in to comment.