diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a697f657..5819b032 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..73b86788 --- /dev/null +++ b/.github/workflows/release.yml @@ -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