Skip to content

Commit

Permalink
working on build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghan234 committed Sep 10, 2024
1 parent 56aefcb commit 4282f8b
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Test with Mamba

on:
push:
branches:
- main
- build-actions
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 'latest' # any version from https://github.com/mamba-org/micromamba-releases
environment-file: environment.yaml
init-shell: >-
bash
cache-environment: true
post-cleanup: 'all'

- name: Install dependencies
run: |
micromamba run -n mattersim pip install .
- name: Save Conda environment as artifact
run: |
tar -czf mattersim-env.tar.gz -C $MAMBA_ROOT_PREFIX/envs/mattersim .
continue-on-error: true

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: mattersim-env
path: mattersim-env.tar.gz


0 comments on commit 4282f8b

Please sign in to comment.