Skip to content

Minor fixes and compatibility #28

Minor fixes and compatibility

Minor fixes and compatibility #28

Workflow file for this run

name: Windows release
on:
release:
types: [published]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
openfoam_version: [ v2206]
container: 'ghcr.io/phorgue/porousmultiphasefoam:openfoam-${{matrix.openfoam_version}}-opensuse-mingw'
steps:
- uses: nelonoel/branch-name@v1.0.1
- name: Checkout
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b ${BRANCH_NAME} .
- name: Build
run: |
FOAM_VERBOSE=true && source /openfoam/etc/bashrc /openfoam/etc-mingw/prefs.sh && ls && ./Allwmake -j
zypper install -y zip
cd /github/home/OpenFOAM/user-${{matrix.openfoam_version}}/platforms/linux64MingwDPInt32Opt/
zip -r pmf-opensuse-mingw-${{matrix.openfoam_version}}.zip .
- name: Installer archive upload push
uses: actions/upload-artifact@v3
with:
name: pmf-opensuse-mingw-${{matrix.openfoam_version}}
path: /github/home/OpenFOAM/user-${{matrix.openfoam_version}}/platforms/linux64MingwDPInt32Opt/pmf-opensuse-mingw-${{matrix.openfoam_version}}.zip
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: Publish assets
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["*/*.zip"]'