Correct to Github actions gcc error #39
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Github Build" | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v2 | |
| - name: Setting up Miniconda | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| auto-activate-base: true | |
| activate-environment: "" | |
| auto-update-conda: true | |
| - name: Downloading NSIS Plugin | |
| uses: carlosperate/download-file-action@v1.1.1 | |
| with: | |
| file-url: https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip | |
| file-name: envar_plugin.zip | |
| location: ${{ github.workspace }} | |
| - name: Installing EnVar Plugin | |
| if: matrix.os == 'windows-latest' | |
| run: 7z x "${{ github.workspace }}/envar_plugin.zip" -o"C:\Program Files (x86)\NSIS" | |
| - name: Building Windows Executable | |
| shell: pwsh | |
| run: | | |
| conda env create -f environment.yml | |
| conda activate wrfplot | |
| python build_exe.py pyinstaller | |
| if: matrix.os == 'windows-latest' | |
| - name: Upload Windows Executable | |
| uses: actions/upload-artifact@v4 | |
| if: matrix.os == 'windows-latest' | |
| with: | |
| name: wrfplot-windows-64bit.exe | |
| path: build\windows\wrfplot-windows-64bit.exe | |
| - name: Build Linux Binary | |
| shell: bash -l {0} | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install patchelf gdb ccache patchelf makeself libfuse2 build-essential -y | |
| conda env create -f environment.yml | |
| conda activate wrfplot | |
| export CC=gcc-7 | |
| python build_exe.py pyinstaller | |
| if: matrix.os == 'ubuntu-24.04' | |
| - name: Upload Linux Executable | |
| uses: actions/upload-artifact@v4 | |
| if: matrix.os == 'ubuntu-24.04' | |
| with: | |
| name: wrfplot-linux-64bit.run | |
| path: build/linux/wrfplot-linux-64bit.run | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Binaries | |
| uses: actions/download-artifact@v4 | |
| - name: Display Downloaded Executables | |
| run: ls -R | |
| - name: Release Process | |
| uses: "marvinpinto/action-automatic-releases@latest" | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| prerelease: false | |
| files: | | |
| wrfplot-windows-64bit.exe | |
| wrfplot-linux-64bit.run |