-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from SciomeLLC/nlopt-update
Only install missing cmake on Linux systems
- Loading branch information
Showing
6 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: clang-test | ||
on: | ||
push: | ||
|
||
jobs: | ||
clang-test: | ||
runs-on: ubuntu-latest | ||
name: clang-${{ matrix.compiler }}-R-${{matrix.R}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: | ||
- llvm-16.0.6 | ||
- llvm-17.0.6 | ||
- llvm-18.1.8 | ||
- llvm-19.1.0 | ||
- llvm-20.0.0 | ||
R: ['release', 'devel'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./build/ | ||
~/vcpkg | ||
~/.cache/vcpkg/archives | ||
${{ env.LOCALAPPDATA }}/vcpkg/archives | ||
${{ env.APPDATA }}/vcpkg/archives | ||
${{ env.XDG_CACHE_HOME }}/vcpkg/archives | ||
~/.cache/ccache | ||
~/.ccache | ||
~/.config/ccache | ||
~/Library/Caches/ccache | ||
${{ env.LOCALAPPDATA }}/ccache | ||
${{ env.XDG_CACHE_HOME }}/ccache | ||
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt', './vcpkg.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ env.BUILD_TYPE }}- | ||
- uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: | | ||
cmake cmake-data gsl dh-elpa-helper libcmark-gfm-extensions0.29.0.gfm.3 | ||
libcmark-gfm0.29.0.gfm.3 libcurl4-openssl-dev libjsoncpp25 librhash0 | ||
pandoc pandoc-data texlive-latex-base texlive-latex-recommended | ||
texlive-fonts-recommended | ||
- name: Setup Cpp (C++ / C) | ||
uses: aminya/setup-cpp@v1 | ||
with: | ||
compiler: ${{ matrix.compiler }} | ||
cmake: true | ||
cache-tools: true | ||
llvm: true | ||
make: true | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{matrix.R}} | ||
install-r: true | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::rcmdcheck, any::roxygen2 | ||
needs: check | ||
- name: Build and Check ToxicR | ||
run: | | ||
r_output=$(R CMD build .) | ||
package_name=$(echo "$r_output" | sed -n "s/.*building ‘\([^’]*\.tar\.gz\)’.*/\1/p") | ||
R CMD check --as-cran --no-manual $package_name | ||
shell: bash | ||
working-directory: "." |
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
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
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
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
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