Skip to content

Commit

Permalink
Fix pipeline typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Jul 21, 2024
1 parent 3cb5788 commit 8e5fbc4
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/build_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,13 @@ jobs:
target: windows-x64
url: https://github.com/Code-Hex/Neo-cowsay/releases/download/v2.0.4/cowsay_2.0.4_Windows_x86_64.zip
sh: pwsh
conda_init: micromamba shell hook -s powershell | Out-String | Invoke-Expression
extra: win
- os: windows-2019
target: windows-x64-wsl
url: https://github.com/Code-Hex/Neo-cowsay/releases/download/v2.0.4/cowsay_2.0.4_Windows_x86_64.zip
sh: bash
conda_init: micromamba shell init --shell bash --root-prefix=~/micromamba
extra: unix
steps:
- uses: actions/checkout@v4
- name: Create conda env
uses: mamba-org/setup-micromamba@v1
with:
init-shell: powershell cmd.exe
init-shell: powershell bash cmd.exe
environment-name: build
post-cleanup: 'all'
create-args: >
Expand All @@ -83,8 +76,10 @@ jobs:
pyinstaller
- name: Activate micromamba env
run: ${{matrix.conda_init}}
shell: ${{matrix.sh}}
run: |
micromamba shell hook -s powershell | Out-String | Invoke-Expression
micromamba activate
shell: pwsh

- name: Set UTF-8 Code Page
run: |
Expand All @@ -106,17 +101,17 @@ jobs:

- name: Adding the evaluation config file
run: micromamba run -n build python src/freva_deployment/__init__.py
shell: ${{matrix.sh}}
shell: pwsh

- name: Install dependencies
run: >
micromamba run -n build
python -m pip install --upgrade-strategy only-if-needed .[${{matrix.extra}}]
shell: ${{matrix.sh}}
shell: pwsh

- name: Download cowsay
run: micromamba run -n build python pyinstaller/download_cowsay.py ${{ matrix.url }}
shell: ${{matrix.sh}}
shell: pwsh

- name: Build with cmd pyinstaller for deploy-freva.exe
env:
Expand All @@ -126,11 +121,11 @@ jobs:
run: |
micromamba run -n build python pyinstaller/pre-win.py
micromamba run -n build pyinstaller --noconfirm deploy-freva-all.spec
shell: ${{matrix.sh}}
shell: pwsh

- name: Test built bindary
run: ./dist/deploy-freva/deploy-freva.exe --help
shell: ${{matrix.sh}}
shell: pwsh
- name: Load Release URL File from release job
if: startsWith(github.ref, 'refs/tags/')
uses: actions/download-artifact@v1
Expand Down

0 comments on commit 8e5fbc4

Please sign in to comment.