-
Notifications
You must be signed in to change notification settings - Fork 129
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 #283 from ctr26/constructor
[WIP} Constructor
- Loading branch information
Showing
3 changed files
with
90 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,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 |
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,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 |
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,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 |