mirror of
https://github.com/ryanvolz/radioconda.git
synced 2026-07-26 20:04:11 -04:00
Merge branch 'next' into dev
This commit is contained in:
@@ -6,10 +6,13 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "installer_specs/**"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
DISTNAME: radioconda
|
||||
SOURCE: github.com/ryanvolz/radioconda
|
||||
LICENSE_ID: BSD-3-Clause
|
||||
METAPACKAGE_LABEL: dev
|
||||
METAPACKAGE_SUMMARY: Metapackage to install the radioconda package set.
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -45,31 +48,31 @@ jobs:
|
||||
with:
|
||||
environment-file: buildenv.yaml
|
||||
|
||||
- name: Build installer (bash)
|
||||
if: runner.os != 'Windows'
|
||||
- name: Build installer
|
||||
shell: bash -l {0}
|
||||
env:
|
||||
PLATFORM: ${{ matrix.PLATFORM }}
|
||||
OS_NAME: ${{ matrix.OS_NAME }}
|
||||
run: |
|
||||
if [ "$OS_NAME" == "Windows" ]; then
|
||||
PATH=$CONDA_PREFIX/NSIS:$PATH
|
||||
fi
|
||||
python build_installer.py -v
|
||||
|
||||
- name: Build metapackage
|
||||
shell: bash -l {0}
|
||||
env:
|
||||
PLATFORM: ${{ matrix.PLATFORM }}
|
||||
run: |
|
||||
python build_installer.py -v
|
||||
python build_metapackage.py installer_specs/$DISTNAME-$PLATFORM.txt
|
||||
|
||||
- name: Build installer (cmd.exe)
|
||||
if: runner.os == 'Windows'
|
||||
shell: powershell
|
||||
env:
|
||||
PLATFORM: ${{ matrix.PLATFORM }}
|
||||
run: |
|
||||
$Env:Path = "$Env:CONDA_PREFIX\NSIS;$Env:Path"
|
||||
echo $Env:Path
|
||||
python build_installer.py -v
|
||||
|
||||
- name: Copy spec and list built installers
|
||||
- name: Copy lock file and list built installers and packages
|
||||
shell: bash
|
||||
env:
|
||||
PLATFORM: ${{ matrix.PLATFORM }}
|
||||
run: |
|
||||
cp installer_specs/$DISTNAME-$PLATFORM/$DISTNAME-$PLATFORM.txt dist/
|
||||
ls -lh dist
|
||||
cp installer_specs/$DISTNAME-$PLATFORM.txt dist/
|
||||
ls -lhR dist
|
||||
|
||||
- name: Test installer (sh)
|
||||
if: contains(matrix.OS_NAME, 'Linux') || contains(matrix.OS_NAME, 'MacOSX')
|
||||
@@ -86,15 +89,30 @@ jobs:
|
||||
|
||||
- name: Test installer (pkg)
|
||||
if: contains(matrix.OS_NAME, 'MacOSX')
|
||||
continue-on-error: true # this test doesn't work yet
|
||||
shell: bash
|
||||
env:
|
||||
OS_NAME: ${{ matrix.OS_NAME }}
|
||||
ARCH: ${{ matrix.ARCH }}
|
||||
TARGET_VOLUME: CurrentUserHomeDirectory
|
||||
INSTALL_PATH: ~/Applications/${{ env.DISTNAME }}
|
||||
INSTALL_PATH: ${{ github.workspace }}/../../../${{ env.DISTNAME }}
|
||||
run: |
|
||||
installer -verbose -pkg dist/$DISTNAME-*-$OS_NAME-$ARCH.pkg -target $TARGET_VOLUME
|
||||
cat >pkg-choices.xml <<EOF
|
||||
<?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">
|
||||
<array>
|
||||
<dict>
|
||||
<key>attributeSetting</key>
|
||||
<integer>0</integer>
|
||||
<key>choiceAttribute</key>
|
||||
<string>selected</string>
|
||||
<key>choiceIdentifier</key>
|
||||
<string>io.continuum.pkg.pathupdate</string>
|
||||
</dict>
|
||||
</array>
|
||||
</plist>
|
||||
EOF
|
||||
installer -verbose -dumplog -applyChoiceChangesXML pkg-choices.xml -pkg dist/$DISTNAME-*-$OS_NAME-$ARCH.pkg -target $TARGET_VOLUME
|
||||
eval "$($INSTALL_PATH/bin/conda shell.bash hook)"
|
||||
conda info
|
||||
conda list
|
||||
@@ -145,3 +163,12 @@ jobs:
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
|
||||
- name: Upload metapackage to Anaconda.org
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
shell: bash -l {0}
|
||||
env:
|
||||
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
|
||||
run: |
|
||||
micromamba --help
|
||||
anaconda upload -l $METAPACKAGE_LABEL --skip-existing dist/conda-bld/**/*
|
||||
|
||||
Reference in New Issue
Block a user