forked from litalbarkai/open-redatam
-
Notifications
You must be signed in to change notification settings - Fork 0
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 litalbarkai#8 from pachadotdev/main
refactors to use C++11 and pugixml
- Loading branch information
Showing
230 changed files
with
22,347 additions
and
6,397 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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: Build Mac executables | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up environment on Mac | ||
run: | | ||
brew install qt@5 | ||
echo "/usr/local/opt/qt@5/bin" >> $GITHUB_PATH | ||
echo "LDFLAGS=-L/usr/local/opt/qt@5/lib" >> $GITHUB_ENV | ||
echo "CPPFLAGS=-I/usr/local/opt/qt@5/include" >> $GITHUB_ENV | ||
echo "PKG_CONFIG_PATH=/usr/local/opt/qt@5/lib/pkgconfig" >> $GITHUB_ENV | ||
- name: Build redatam and redatamgui on Mac | ||
run: make all | ||
|
||
- name: Create .app bundle for redatamgui | ||
run: | | ||
mkdir -p RedatamGUI.app/Contents/MacOS | ||
mkdir -p RedatamGUI.app/Contents/Resources | ||
cp redatamgui RedatamGUI.app/Contents/MacOS/ | ||
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> | ||
<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"> | ||
<plist version=\"1.0\"> | ||
<dict> | ||
<key>CFBundleExecutable</key> | ||
<string>redatamgui</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.pacha.openredatam</string> | ||
<key>CFBundleName</key> | ||
<string>Redatam GUI</string> | ||
<key>CFBundleVersion</key> | ||
<string>2.0</string> | ||
<key>CFBundleIconFile</key> | ||
<string>icon.icns</string> | ||
</dict> | ||
</plist>" > RedatamGUI.app/Contents/Info.plist | ||
# Add your icon file to the Resources directory if you have one | ||
# cp path/to/icon.icns RedatamGUI.app/Contents/Resources/ | ||
- name: Bundle Qt libraries on Mac | ||
run: | | ||
/usr/local/opt/qt@5/bin/macdeployqt RedatamGUI.app | ||
- name: Create DMG | ||
run: | | ||
mkdir -p dmg-root/Applications | ||
cp -R RedatamGUI.app dmg-root/Applications/ | ||
cp redatam dmg-root/Applications/ | ||
hdiutil create -volname "Redatam" -srcfolder dmg-root -ov -format UDZO open-redatam-mac.dmg | ||
- name: Upload macOS DMG | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: open-redatam-mac | ||
path: open-redatam-mac.dmg |
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,77 @@ | ||
name: Python package | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: [3.8] | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Update pip to the latest version | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Create and activate virtual environment (Linux and macOS) | ||
if: runner.os != 'Windows' | ||
run: | | ||
cd pypkg | ||
python -m venv venv | ||
source venv/bin/activate | ||
python -m pip install --upgrade pip | ||
- name: Create and activate virtual environment (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
cd pypkg | ||
python -m venv venv | ||
venv\Scripts\activate | ||
python -m pip install --upgrade pip | ||
- name: Install dependencies (Linux and macOS) | ||
if: runner.os != 'Windows' | ||
run: | | ||
cd pypkg | ||
source venv/bin/activate | ||
pip install pandas numpy pybind11 | ||
pip install --use-pep517 . | ||
- name: Install dependencies (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
cd pypkg | ||
venv\Scripts\activate | ||
pip install pandas numpy pybind11 | ||
pip install --use-pep517 . | ||
- name: Run tests (Linux and macOS) | ||
if: runner.os != 'Windows' | ||
run: | | ||
cd pypkg | ||
source venv/bin/activate | ||
python tests/basic-test.py | ||
- name: Run tests (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
cd pypkg | ||
venv\Scripts\activate | ||
python tests/basic-test.py |
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,56 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
name: R package (Docker) | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ${{ matrix.config.os }} | ||
container: ${{ matrix.config.container }} | ||
|
||
name: ${{ matrix.config.name }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/ubuntu-gcc12:latest' }, name: 'r-devel-linux-x86_64-debian-gcc'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/ubuntu-clang:latest' }, name: 'r-devel-linux-x86_64-debian-clang'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/atlas:latest' }, name: 'ATLAS'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/c23:latest' }, name: 'C23'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/clang-asan:latest' }, name: 'clang-ASAN'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/clang16:latest' }, name: 'clang16'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/clang17:latest' }, name: 'clang17'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/clang18:latest' }, name: 'clang18'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/clang19:latest' }, name: 'clang19'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/clang20:latest' }, name: 'clang20'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/donttest:latest' }, name: 'donttest'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/gcc13:latest' }, name: 'gcc13'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/gcc13:latest' }, name: 'gcc14'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/intel:latest' }, name: 'intel'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/mkl:latest' }, name: 'mkl'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/nold:latest' }, name: 'noLD'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/noremap:latest' }, name: 'noRemap'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/valgrind:latest' }, name: 'rchk'} | ||
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/valgrind:latest' }, name: 'valgrind'} | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check package | ||
run: | | ||
cd ./rpkg | ||
R -q -e 'pak::pkg_install(c("deps::.", "any::rcmdcheck"), dependencies = TRUE)' | ||
R -q -e 'rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), build_args = "--no-manual", error_on = "error")' |
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
Oops, something went wrong.