Skip to content

Add type patterns to ArrayArith #301

Add type patterns to ArrayArith

Add type patterns to ArrayArith #301

Workflow file for this run

name: Build
on: [pull_request]
env:
BASE_URL: https://gitlab.sac-home.org/sac-group/sac-packages/-/raw/master/latest/weekly
jobs:
build_ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Get HEAD and submodules
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'
- name: Install sac2c-basic
run: |
wget ${BASE_URL}/Ubl22/sac2c-basic.deb
sudo apt install ./sac2c-basic.deb
sac2c -V
- name: Create build directory
run: |
cmake -E make_directory ${{runner.workspace}}/build
mkdir $HOME/.sac2crc
- name: Configure build system
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake -DFULLTYPES=ON $GITHUB_WORKSPACE
- name: Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake --build . -j2 2>&1 | tee build.log
if [ ${PIPESTATUS[0]} -ne 0 ]; then
echo "!!! ERROR detected in build !!!";
exit 1;
fi
${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log
build_macos:
runs-on: macos-13
steps:
- name: Get HEAD and submodules
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'
- name: Install sac2c-basic
run: |
wget ${BASE_URL}/MacOS_x86/sac2c-basic.pkg
sudo installer -pkg ./sac2c-basic.pkg -target /
sac2c -V
- name: Set XCode version
run: |
sudo xcode-select -switch "/Applications/Xcode_14.1.0.app"
# we need to rewrite sysroot path to use specific Xcode version
sudo find /usr/local/share -type f -name 'sac2crc_*' -execdir sed -i.bak 's/Xcode\.app/Xcode_13\.4\.app/g' {} \;
- name: Create build directory
run: |
cmake -E make_directory ${{runner.workspace}}/build
mkdir $HOME/.sac2crc
- name: Configure build system
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake -DFULLTYPES=ON ${GITHUB_WORKSPACE}
- name: Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake --build . -j2 2>&1 | tee build.log
if [ ${PIPESTATUS[0]} -ne 0 ]; then
echo "!!! ERROR detected in build !!!";
exit 1;
fi
${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log