diff --git a/.github/workflows/unix_impl.yml b/.github/actions/unix_impl/action.yml similarity index 94% rename from .github/workflows/unix_impl.yml rename to .github/actions/unix_impl/action.yml index d0ab680..e201382 100644 --- a/.github/workflows/unix_impl.yml +++ b/.github/actions/unix_impl/action.yml @@ -1,9 +1,7 @@ name: "Common steps for Linux and OSX" runs: + using: "composite" steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Set conda environment uses: mamba-org/setup-micromamba@v2 with: @@ -23,10 +21,12 @@ runs: else micromamba install xtensor-r==0.14.0 -c conda-forge; fi + shell: bash -e -l {0} - name: Build Xtensor.R package run: | R CMD build ${{ github.workspace }}; + shell: bash -e -l {0} - name: Check R package run: | @@ -47,3 +47,4 @@ runs: cat xtensor.Rcheck/Rdlatex.log ); fi + shell: bash -e -l {0} diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 7f31946..cb36f8f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -26,7 +26,7 @@ jobs: - {compiler: gcc, version: '12', novendor: 1} - {compiler: gcc, version: '13', novendor: 1} - {compiler: gcc, version: '14', novendor: 1} - #- {compiler: clang, version: '19'} + - {compiler: clang, version: '19'} - {compiler: clang, version: '20'} steps: @@ -52,6 +52,9 @@ jobs: sudo update-alternatives --set clang++ /usr/bin/clang++-${{matrix.sys.version}} sudo update-alternatives --set clang-scan-deps /usr/bin/clang-scan-deps-${{matrix.sys.version}} + - name: Checkout code + uses: actions/checkout@v4 + - name: Build and run tests - uses: ./.github/workflows/unix_impl.yml + uses: ./.github/actions/unix_impl diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index f066647..06d5445 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -23,6 +23,9 @@ jobs: steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Build and run tests - uses: ./.github/workflows/unix_impl.yml + uses: ./.github/actions/unix_impl