Skip to content

Commit

Permalink
Merge pull request #283 from ctr26/constructor
Browse files Browse the repository at this point in the history
[WIP} Constructor
  • Loading branch information
esgomezm authored Sep 28, 2023
2 parents f97f386 + bbf2643 commit 01c75c9
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
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

0 comments on commit 01c75c9

Please sign in to comment.