Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP} Constructor #283

Merged
merged 8 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/mamba.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create Conda Environment
on: [push]
jobs:
conda:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
# mamba-version: "*"
auto-update-conda: true
environment-file: .binder/environment.yml
python-version: ${{ matrix.python-version }}
# use-mamba: true
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list
- name: Conda activate
shell: bash -el {0}
run: constructor --output-dir dist/main
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: dist/main
43 changes: 43 additions & 0 deletions .github/workflows/release_constructor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create Draft Release and Upload Assets
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# Upload assets for each OS. Repeat this step for each OS if your previous workflow created multiple artifacts
- name: Upload Release Asset (Ubuntu)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the create release step
asset_path: ./dist/main/ubuntu-artifact-name.extension # Change to your file's name and path
asset_name: ubuntu-artifact-name.extension # Change to your file's name
asset_content_type: application/octet-stream
- name: Upload Release Asset (MacOS)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/main/macos-artifact-name.extension
asset_name: macos-artifact-name.extension
asset_content_type: application/octet-stream
- name: Upload Release Asset (Windows)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/main/windows-artifact-name.extension
asset_name: windows-artifact-name.extension
asset_content_type: application/octet-stream
14 changes: 14 additions & 0 deletions construct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Miniconda
version: "2.5.5"
channels:
- "http://repo.continuum.io/pkgs/main/"
environment_file: .binder/environment.yml
#license_file: EULA.txt
# welcome_image: photo.png # [win]
# Pip dependencies are NOT recommended. If you do need them
# uncomment the line below and edit `pip-dependencies.sh`.
#post_install: pip-dependencies.sh

# do not edit below this line
# ---------------------------
installer_type: all
Loading