-
Notifications
You must be signed in to change notification settings - Fork 3
81 lines (74 loc) · 2.43 KB
/
release-github.yaml
File metadata and controls
81 lines (74 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: "Github Build and Release"
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@v4
- name: Setting up Miniconda
uses: conda-incubator/setup-miniconda@v3
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