Minor fixes and compatibility #28
Workflow file for this run
This file contains 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: 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/[email protected] | |
- 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/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
asset_paths: '["*/*.zip"]' |