-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial copy from galactic to humble
- Loading branch information
0 parents
commit 0c650ae
Showing
119 changed files
with
8,948 additions
and
0 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,2 @@ | ||
github: RoboStack | ||
open_collective: robostack |
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,90 @@ | ||
name: Build RoboStack installer | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.MINIFORGE_NAME }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
ARCH: x86_64 | ||
MINIFORGE_NAME: "rosdesktop" | ||
OS_NAME: "Windows" | ||
|
||
- os: macos-latest | ||
ARCH: x86_64 | ||
MINIFORGE_NAME: "rosdesktop" | ||
OS_NAME: "MacOSX" | ||
|
||
- os: ubuntu-latest | ||
ARCH: aarch64 | ||
DOCKER_ARCH: arm64v8 | ||
DOCKERIMAGE: condaforge/linux-anvil-aarch64 | ||
MINIFORGE_NAME: "rosdesktop" | ||
OS_NAME: "Linux" | ||
|
||
- os: ubuntu-latest | ||
ARCH: x86_64 | ||
DOCKER_ARCH: amd64 | ||
DOCKERIMAGE: condaforge/linux-anvil-comp7 | ||
MINIFORGE_NAME: "rosdesktop" | ||
OS_NAME: "Linux" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
if: contains(matrix.OS_NAME, 'Windows') | ||
|
||
- name: Build and test miniforge | ||
env: | ||
ARCH: ${{ matrix.ARCH }} | ||
MINIFORGE_NAME: ${{ matrix.MINIFORGE_NAME }} | ||
OS_NAME: ${{ matrix.OS_NAME }} | ||
DOCKERIMAGE: ${{ matrix.DOCKERIMAGE }} | ||
DOCKER_ARCH: ${{ matrix.DOCKER_ARCH }} | ||
run: | | ||
cd constructor_scripts; | ||
if [[ "$GITHUB_REF" == refs/tags/* ]]; then | ||
export MINIFORGE_VERSION=${GITHUB_REF##*/}; | ||
fi | ||
if [[ "$OS_NAME" == "Linux" ]]; then | ||
bash build_robostack_installer.sh; | ||
EXT=sh | ||
fi | ||
if [[ "$OS_NAME" == "MacOSX" ]]; then | ||
bash build_robostack_installer_osx.sh; | ||
EXT=sh | ||
fi | ||
if [[ "$OS_NAME" == "Windows" ]]; then | ||
source /c/Miniconda3/Scripts/activate; | ||
source build_robostack_installer_win.sh; | ||
EXT=exe | ||
fi | ||
# Copy for latest release | ||
cp build/$MINIFORGE_NAME-*-$OS_NAME-$ARCH.$EXT build/$MINIFORGE_NAME-$OS_NAME-$ARCH.$EXT | ||
ls -alh build | ||
shell: bash | ||
|
||
- name: Upload robostack installer to Github artifact | ||
# if: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.MINIFORGE_NAME }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }} | ||
path: constructor_scripts/build/${{ matrix.MINIFORGE_NAME }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}* | ||
|
||
- name: Upload robostack installer to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: constructor_scripts/build/${{ matrix.MINIFORGE_NAME }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
if: startsWith(github.ref, 'refs/tags/') |
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,80 @@ | ||
#!/usr/bin/env bash | ||
|
||
# PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here | ||
# will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent | ||
# changes to this script, consider a proposal to conda-smithy so that other feedstocks can also | ||
# benefit from the improvement. | ||
|
||
set -xeuo pipefail | ||
export PYTHONUNBUFFERED=1 | ||
export FEEDSTOCK_ROOT="${FEEDSTOCK_ROOT:-/home/conda/feedstock_root}" | ||
export RECIPE_ROOT="${RECIPE_ROOT:-/home/conda/recipe_root}" | ||
# export CI_SUPPORT="${FEEDSTOCK_ROOT}/.ci_support" | ||
# export CONFIG_FILE="${CI_SUPPORT}/${CONFIG}.yaml" | ||
|
||
cat >~/.condarc <<CONDARC | ||
conda-build: | ||
root-dir: /opt/conda/build_artifacts | ||
CONDARC | ||
|
||
# This doesn't work, see e.g. https://dev.azure.com/robostack/ros_pipelines/_build/results?buildId=188&view=logs&j=4e20d398-0572-5e54-89c7-6bdb9c00a59a&t=f5885ff8-badf-54b3-1543-35164851bdf3 | ||
# if grep -q libgl "recipes/${CURRENT_BUILD_PKG_NAME}.yaml"; then | ||
# sudo yum install -y install mesa-libGL-devel | ||
# fi | ||
|
||
export "CONDA_BLD_PATH=/opt/conda/build_artifacts" | ||
|
||
mkdir -p $CONDA_BLD_PATH | ||
conda index $CONDA_BLD_PATH | ||
|
||
conda config --set remote_max_retries 5 | ||
# conda config --append channels defaults | ||
conda config --add channels conda-forge | ||
conda config --add channels robostack-humble | ||
conda config --add channels $CONDA_BLD_PATH | ||
conda config --remove channels defaults | ||
# conda config --set channel_priority strict | ||
|
||
mamba update conda --yes --quiet -c conda-forge | ||
mamba install --yes --quiet pip conda-build=3.21.8 anaconda-client mamba boa=0.9 | ||
|
||
# install boa from master | ||
# baaaad | ||
# pip install git+https://github.com/mamba-org/boa.git@master | ||
|
||
# setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" | ||
# export PATH="$HOME/miniconda/bin:$PATH" | ||
conda config --set anaconda_upload yes | ||
conda config --set show_channel_urls true | ||
conda config --set auto_update_conda false | ||
conda config --set add_pip_as_python_dependency false | ||
|
||
conda info | ||
conda config --show-sources | ||
conda list --show-channel-urls | ||
|
||
pwd | ||
|
||
for recipe in ${CURRENT_RECIPES[@]}; do | ||
cd ${FEEDSTOCK_ROOT}/recipes/${recipe} | ||
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml | ||
done | ||
|
||
anaconda -t ${ANACONDA_API_TOKEN} upload /opt/conda/build_artifacts/linux-*/*.tar.bz2 --force | ||
# quetz-client "${QUETZ_URL}" /opt/conda/build_artifacts --force | ||
|
||
# set up the condarc | ||
|
||
# source run_conda_forge_build_setup | ||
|
||
# # make the build number clobber | ||
# make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" | ||
|
||
# conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \ | ||
# --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml" | ||
|
||
# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then | ||
# upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}" | ||
# fi | ||
|
||
# touch "${FEEDSTOCK_ROOT}/build_artifacts/conda-forge-build-done-${CONFIG}" |
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,78 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
export FEEDSTOCK_ROOT=`pwd` | ||
|
||
echo -e "\n\nInstalling a fresh version of Miniforge." | ||
MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download" | ||
MINIFORGE_FILE="Mambaforge-MacOSX-x86_64.sh" | ||
curl -L -O --silent "${MINIFORGE_URL}/${MINIFORGE_FILE}" | ||
/bin/bash $MINIFORGE_FILE -b | ||
|
||
echo -e "\n\nConfiguring conda." | ||
|
||
source ${HOME}/mambaforge/etc/profile.d/conda.sh | ||
conda activate base | ||
|
||
conda config --set remote_max_retries 5 | ||
|
||
echo -e "\n\nInstalling conda-forge-ci-setup=3 and conda-build." | ||
mamba install -n base --quiet --yes conda-forge-ci-setup=3 conda-build pip boa=0.9 quetz-client \ | ||
-c conda-forge/label/boa_dev -c conda-forge | ||
|
||
set -e | ||
|
||
# install boa from master | ||
# git clone https://github.com/thesnakepit/boa | ||
# cd boa | ||
# pip install -e . | ||
# cd .. | ||
|
||
# echo -e "\n\nSetting up the condarc and mangling the compiler." | ||
# # setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml | ||
# # mangle_compiler ./ ./recipe .ci_support/${CONFIG}.yaml | ||
|
||
# echo -e "\n\nMangling homebrew in the CI to avoid conflicts." | ||
# # /usr/bin/sudo mangle_homebrew | ||
# # /usr/bin/sudo -k | ||
|
||
# echo -e "\n\nRunning the build setup script." | ||
# # source run_conda_forge_build_setup | ||
|
||
export "CONDA_BLD_PATH=$CONDA_PREFIX/conda-bld/" | ||
|
||
mkdir -p $CONDA_BLD_PATH | ||
conda index $CONDA_BLD_PATH | ||
|
||
conda config --set anaconda_upload yes | ||
conda config --set show_channel_urls true | ||
conda config --set auto_update_conda false | ||
conda config --set add_pip_as_python_dependency false | ||
|
||
conda config --add channels conda-forge | ||
conda config --add channels robostack-experimental | ||
conda config --add channels $CONDA_BLD_PATH | ||
# conda config --set channel_priority strict | ||
|
||
# echo -e "\n\nMaking the build clobber file and running the build." | ||
# make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml | ||
|
||
conda info | ||
conda config --show-sources | ||
conda list --show-channel-urls | ||
|
||
for recipe in ${CURRENT_RECIPES[@]}; do | ||
cd ${FEEDSTOCK_ROOT}/recipes/${recipe} | ||
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml | ||
done | ||
|
||
anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-64/*.tar.bz2 --force | ||
# quetz-client "${QUETZ_URL}" ${CONDA_BLD_PATH} --force | ||
|
||
# conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml | ||
|
||
# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then | ||
# echo -e "\n\nUploading the packages." | ||
# upload_package --validate --feedstock-name="libsolv-feedstock" ./ ./recipe ./.ci_support/${CONFIG}.yaml | ||
# fi |
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,78 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
export FEEDSTOCK_ROOT=`pwd` | ||
|
||
echo -e "\n\nInstalling a fresh version of Miniforge." | ||
MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download" | ||
MINIFORGE_FILE="Mambaforge-MacOSX-x86_64.sh" | ||
curl -L -O --silent "${MINIFORGE_URL}/${MINIFORGE_FILE}" | ||
/bin/bash $MINIFORGE_FILE -b | ||
|
||
echo -e "\n\nConfiguring conda." | ||
|
||
source ${HOME}/mambaforge/etc/profile.d/conda.sh | ||
conda activate base | ||
|
||
conda config --set remote_max_retries 5 | ||
|
||
echo -e "\n\nInstalling conda-forge-ci-setup=3 and conda-build." | ||
mamba install -n base --quiet --yes conda-forge-ci-setup=3 conda-build pip boa=0.9 quetz-client \ | ||
-c conda-forge/label/boa_dev -c conda-forge | ||
|
||
set -e | ||
|
||
# install boa from master | ||
# git clone https://github.com/thesnakepit/boa | ||
# cd boa | ||
# pip install -e . | ||
# cd .. | ||
|
||
# echo -e "\n\nSetting up the condarc and mangling the compiler." | ||
# # setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml | ||
# # mangle_compiler ./ ./recipe .ci_support/${CONFIG}.yaml | ||
|
||
# echo -e "\n\nMangling homebrew in the CI to avoid conflicts." | ||
# # /usr/bin/sudo mangle_homebrew | ||
# # /usr/bin/sudo -k | ||
|
||
# echo -e "\n\nRunning the build setup script." | ||
# # source run_conda_forge_build_setup | ||
|
||
export "CONDA_BLD_PATH=$CONDA_PREFIX/conda-bld/" | ||
|
||
mkdir -p $CONDA_BLD_PATH | ||
conda index $CONDA_BLD_PATH | ||
|
||
conda config --set anaconda_upload yes | ||
conda config --set show_channel_urls true | ||
conda config --set auto_update_conda false | ||
conda config --set add_pip_as_python_dependency false | ||
|
||
conda config --add channels conda-forge | ||
conda config --add channels robostack-experimental | ||
conda config --add channels $CONDA_BLD_PATH | ||
# conda config --set channel_priority strict | ||
|
||
# echo -e "\n\nMaking the build clobber file and running the build." | ||
# make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml | ||
|
||
conda info | ||
conda config --show-sources | ||
conda list --show-channel-urls | ||
|
||
for recipe in ${CURRENT_RECIPES[@]}; do | ||
cd ${FEEDSTOCK_ROOT}/recipes/${recipe} | ||
boa build . -m ${FEEDSTOCK_ROOT}/.ci_support/conda_forge_pinnings.yaml -m ${FEEDSTOCK_ROOT}/conda_build_config.yaml --target-platform=osx-arm64 | ||
done | ||
|
||
anaconda -t ${ANACONDA_API_TOKEN} upload ${CONDA_BLD_PATH}/osx-arm64/*.tar.bz2 --force | ||
# quetz-client "${QUETZ_URL}" ${CONDA_BLD_PATH} --force | ||
|
||
# conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml | ||
|
||
# if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then | ||
# echo -e "\n\nUploading the packages." | ||
# upload_package --validate --feedstock-name="libsolv-feedstock" ./ ./recipe ./.ci_support/${CONFIG}.yaml | ||
# fi |
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,55 @@ | ||
setlocal EnableExtensions EnableDelayedExpansion | ||
call %CONDA%\condabin\conda_hook.bat | ||
call %CONDA%\condabin\conda.bat activate base | ||
|
||
set "PATH=%PATH:C:\ProgramData\Chocolatey\bin;=%" | ||
set "PATH=%PATH:C:\Program Files (x86)\sbt\bin;=%" | ||
set "PATH=%PATH:C:\Rust\.cargo\bin;=%" | ||
set "PATH=%PATH:C:\Program Files\Git\usr\bin;=%" | ||
set "PATH=%PATH:C:\Program Files\Git\cmd;=%" | ||
set "PATH=%PATH:C:\Program Files\Git\mingw64\bin;=%" | ||
set "PATH=%PATH:C:\Program Files (x86)\Subversion\bin;=%" | ||
set "PATH=%PATH:C:\Program Files\CMake\bin;=%" | ||
set "PATH=%PATH:C:\Program Files\OpenSSL\bin;=%" | ||
set "PATH=%PATH:C:\Strawberry\c\bin;=%" | ||
set "PATH=%PATH:C:\Strawberry\perl\bin;=%" | ||
set "PATH=%PATH:C:\Strawberry\perl\site\bin;=%" | ||
set "PATH=%PATH:c:\tools\php;=%" | ||
:: Make paths like C:\\hostedtoolcache\\windows\\Ruby\\2.5.7\\x64\\bin garbage | ||
set "PATH=%PATH:ostedtoolcache=%" | ||
|
||
echo "PATH is %PATH%" | ||
echo "CONDA_BLD_PATH is %CONDA_BLD_PATH%" | ||
|
||
rmdir /Q/S C:\Strawberry\ | ||
rmdir /Q/S "C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\" | ||
|
||
set "FEEDSTOCK_ROOT=%cd%" | ||
|
||
mkdir %CONDA_BLD_PATH% | ||
call conda index %CONDA_BLD_PATH% | ||
|
||
call conda config --remove channels defaults | ||
call conda config --add channels conda-forge | ||
call conda config --add channels robostack-experimental | ||
call conda config --add channels %CONDA_BLD_PATH% | ||
:: call conda config --set channel_priority strict | ||
|
||
:: Enable long path names on Windows | ||
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f | ||
|
||
:: conda remove --force m2-git | ||
|
||
:: C:\Miniconda\python.exe -m pip install git+https://github.com/mamba-org/boa.git@main | ||
call conda install boa=0.9 | ||
if errorlevel 1 exit 1 | ||
|
||
for %%X in (%CURRENT_RECIPES%) do ( | ||
echo "BUILDING RECIPE %%X" | ||
cd %FEEDSTOCK_ROOT%\recipes\%%X\ | ||
boa build . -m %FEEDSTOCK_ROOT%\.ci_support\conda_forge_pinnings.yaml -m %FEEDSTOCK_ROOT%\conda_build_config.yaml | ||
if errorlevel 1 exit 1 | ||
) | ||
|
||
anaconda -t %ANACONDA_API_TOKEN% upload "C:\bld\win-64\*.tar.bz2" --force | ||
if errorlevel 1 exit 1 |
Oops, something went wrong.