Updated other workflows #64
Workflow file for this run
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: MacOS-x86_64 | |
on: | |
push: | |
paths-ignore: | |
- '.github/workflows/alpine-x86_64.yml' | |
- '.github/workflows/ubuntu-x86_64.yml' | |
- '.github/workflows/ubuntu-aarch64.yml' | |
- '.github/workflows/msys-x86_64.yml' | |
- '.github/workflows/windows-x86_64.yml' | |
- '.github/workflows/macos-arm64.yml' | |
pull_request: | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/cache | |
jobs: | |
build-and-test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
brew install argp-standalone coreutils | |
brew tap LouisBrunner/valgrind | |
brew install --HEAD LouisBrunner/valgrind/valgrind | |
- name: Configure CMake | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} | |
- name: Build | |
run: | | |
cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Test well formed files | |
working-directory: ${{ github.workspace }} | |
run: ./tests/resources/check_correctness.sh -r -s | |
- name: Test corrupted files | |
working-directory: ${{ github.workspace }} | |
run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-corrupted/ -xN | |
- name: Test EA files | |
working-directory: ${{ github.workspace }} | |
run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-ea/ | |
build-for-ruby: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup environment | |
run: | | |
echo 'BREW_HOME<<EOF' >> $GITHUB_ENV | |
brew --prefix >> $GITHUB_ENV | |
echo 'EOF' >> $GITHUB_ENV | |
- name: Install packages | |
run: brew install bash | |
- name: Create cache storage and cache key | |
run: | | |
mkdir ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} | |
git submodule status > sm.txt | |
- name: Process cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} | |
key: ${{ github.workflow }}-vcpkg-${{ hashFiles('sm.txt') }} | |
- name: Configure CMake | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ | |
-DVCPKG_TARGET_TRIPLET=x64-osx \ | |
-DLONLY=ON \ | |
-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | |
- name: Build | |
run: | | |
cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Checkout shell test framework | |
uses: actions/checkout@v4 | |
with: | |
repository: kward/shunit2 | |
path: tests/shunit2 | |
fetch-depth: 1 | |
- name: Run additional tests | |
run: ${{ env.BREW_HOME }}/bin/bash tests/resources/lcheck.sh |