-
-
Notifications
You must be signed in to change notification settings - Fork 347
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 #58 from isuruf/github
Move to github actions
- Loading branch information
Showing
5 changed files
with
108 additions
and
97 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,102 @@ | ||
name: Build miniforge | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.MINIFORGE_NAME }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
ARCH: arm64 | ||
MINIFORGE_NAME: "Miniforge3" | ||
OS_NAME: "MacOSX" | ||
|
||
- os: macos-latest | ||
ARCH: x86_64 | ||
MINIFORGE_NAME: "Miniforge-pypy3" | ||
OS_NAME: "MacOSX" | ||
|
||
- os: macos-latest | ||
ARCH: x86_64 | ||
MINIFORGE_NAME: "Miniforge3" | ||
OS_NAME: "MacOSX" | ||
|
||
- os: ubuntu-latest | ||
ARCH: aarch64 | ||
DOCKER_ARCH: arm64v8 | ||
DOCKERIMAGE: condaforge/linux-anvil-aarch64 | ||
MINIFORGE_NAME: "Miniforge3" | ||
OS_NAME: "Linux" | ||
|
||
- os: ubuntu-latest | ||
ARCH: x86_64 | ||
DOCKER_ARCH: amd64 | ||
DOCKERIMAGE: condaforge/linux-anvil-comp7 | ||
MINIFORGE_NAME: "Miniforge3" | ||
OS_NAME: "Linux" | ||
|
||
- os: ubuntu-latest | ||
ARCH: ppc64le | ||
DOCKER_ARCH: ppc64le | ||
DOCKERIMAGE: condaforge/linux-anvil-ppc64le | ||
MINIFORGE_NAME: "Miniforge3" | ||
OS_NAME: "Linux" | ||
|
||
- os: ubuntu-latest | ||
ARCH: aarch64 | ||
DOCKER_ARCH: arm64v8 | ||
DOCKERIMAGE: condaforge/linux-anvil-aarch64 | ||
MINIFORGE_NAME: "Miniforge-pypy3" | ||
OS_NAME: "Linux" | ||
|
||
- os: ubuntu-latest | ||
ARCH: x86_64 | ||
DOCKER_ARCH: amd64 | ||
DOCKERIMAGE: condaforge/linux-anvil-comp7 | ||
MINIFORGE_NAME: "Miniforge-pypy3" | ||
OS_NAME: "Linux" | ||
|
||
- os: ubuntu-latest | ||
ARCH: ppc64le | ||
DOCKER_ARCH: ppc64le | ||
DOCKERIMAGE: condaforge/linux-anvil-ppc64le | ||
MINIFORGE_NAME: "Miniforge-pypy3" | ||
OS_NAME: "Linux" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- 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: | | ||
if [[ "$GITHUB_REF" == refs/tags/* ]]; then | ||
export MINIFORGE_VERSION=$${GITHUB_REF##*/}; | ||
fi | ||
if [[ "$OS_NAME" == "Linux" ]]; then | ||
bash build_miniforge.sh; | ||
fi | ||
if [[ "$OS_NAME" == "MacOSX" ]]; then | ||
bash build_miniforge_osx.sh; | ||
fi | ||
# Copy for latest release | ||
cp build/$MINIFORGE_NAME-*-$OS_NAME-$ARCH.sh build/$MINIFORGE_NAME-$OS_NAME-$ARCH.sh | ||
ls -alh build | ||
- name: Upload miniforge to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: build/Miniforge* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
if: startsWith(github.ref, 'refs/tags/') |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -ex | ||
|
||
echo "***** Start: Testing Miniforge installer *****" | ||
|
||
|