Skip to content

Commit

Permalink
adding release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Jul 25, 2024
1 parent 778b7b0 commit 8cf1dee
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,3 @@ jobs:
run: yarn osx
- name: package
run: tar -czf osx.tar.gz ./psyneulinkviewer-darwin-x64

# build_on_win:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@master
# with:
# node-version: 14
# - name: install dependencies
# run: npm install
# - name: build
# run: npm run make
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build
on: [push, pull_request]

jobs:
build_on_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18.19
- name: install meta-diagram
run: bash installation.sh -i
- name: install dependencies
run: yarn
- name: build
run: yarn linux64
- name: package
run: tar -czf linux.tar.gz ./psyneulinkviewer-linux-x64
- name: release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: linux.tar.gz

build_on_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 18.19
- name: create conda symlink
run: wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O ~/miniconda.sh && bash ~/miniconda.sh -b -p $HOME/miniconda && source $HOME/miniconda/bin/activate && conda init
- name: extra steps
run: source $HOME/miniconda/bin/activate && conda --version
- name: install meta-diagram
run: source $HOME/miniconda/bin/activate && bash installation.sh -i
- name: install dependencies
run: yarn
- name: build
run: yarn osx
- name: package
run: tar -czf osx.tar.gz ./psyneulinkviewer-darwin-x64
- name: release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: osx.tar.gz

0 comments on commit 8cf1dee

Please sign in to comment.