Skip to content

Commit

Permalink
re-test all
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarnotel committed Feb 15, 2024
1 parent 7eb7b0d commit db42d3c
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 21 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release-deb.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Release Debian
on: ['push']
# workflow_run:
# workflows: ['Release']
# types:
# - completed

# TODO remove ['push'] and uncomment workflow_run
on:
workflow_run:
workflows: ['Release']
types:
- completed

jobs:
debian:
Expand Down
102 changes: 102 additions & 0 deletions .github/workflows/release-dmg-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Release MacOS ARM
on:
workflow_run:
workflows: ['Release']
types:
- completed

# TODO remove ['push'] and uncomment workflow_run

jobs:
macos:
name: DMG release ARM
runs-on: self-hosted

env:
CC: gcc
CXX: g++
FC: gfortran
F77: gfortran
ARCH: ARM

steps:
- uses: actions/checkout@main

- name: Install
run: brew install gcc m4 git flex bison suitesparse hdf5 cmake wget autoconf automake freeglut

- name: Symlink GCC & Fortran
run: ./etc/actions/macos/link_fortran.sh

- name: Version
id: version
run: |
VERSION=$(grep AC_INIT configure.ac | cut -d"," -f2 | cut -d"[" -f2 | cut -d"]" -f1)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "prefix=/Applications/FreeFem++.app/Contents/ff-$VERSION" >> $GITHUB_OUTPUT
echo "dmg_dir=FreeFEM-$VERSION-$ARCH" >> $GITHUB_OUTPUT
- name: Create paths
run: |
PREFIX=${{ steps.version.outputs.prefix }}
sudo mkdir -p "$PREFIX"
- name: Fortran copy
run: |
PREFIX=${{ steps.version.outputs.prefix }}
sudo ./etc/actions/release/macos/copy_fortran.sh "$PREFIX"
- name: Configure
run: |
PREFIX=${{ steps.version.outputs.prefix }}
autoreconf -i
./configure --enable-optim --enable-generic --enable-download --enable-m64 \
--prefix="$PREFIX" \
"CXXFLAGS=-Wno-undefined-var-template" \
"FLIBS=-L"$PREFIX/gnu" -lgfortran -lquadmath"
./3rdparty/getall -a -o PETSc
- name: PETSc
run: |
cd 3rdparty/ff-petsc
make petsc-slepc SUDO=sudo
cd -
./reconfigure
- name: Build
run: make -j2

- name: Check
continue-on-error: true
run: make check

- name: Install
run: |
PREFIX=${{ steps.version.outputs.prefix }}
mkdir -p "$HOME/pkg/$PREFIX"
rsync -a "$PREFIX/." "$HOME/pkg/$PREFIX/."
sudo make install DESTDIR="$HOME/pkg"
- name: Fix gfotran lib
run: |
PREFIX=${{ steps.version.outputs.prefix }}
sudo ./etc/actions/release/macos/fix_fortran.sh "$HOME/pkg" "$PREFIX"
- name: Create DMG
id: dmg
run: |
DMG_DIR=${{ steps.version.outputs.dmg_dir }}
sudo ./etc/actions/release/macos/create_dmg.sh "$HOME/pkg" "$DMG_DIR"
echo "file=$DMG_DIR.dmg" >>$GITHUB_OUTPUT
- name: Upload release
uses: AButler/[email protected]
with:
files: ${{ steps.dmg.outputs.file }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v${{ steps.version.outputs.version }}-testActions
12 changes: 5 additions & 7 deletions .github/workflows/release-dmg.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Release MacOS
on: ['push']
# workflow_run:
# workflows: ['Release']
# types:
# - completed

# TODO remove ['push'] and uncomment workflow_run
on:
workflow_run:
workflows: ['Release']
types:
- completed

jobs:
macos:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release-exe.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Release Windows
on: ['push']
# workflow_run:
# workflows: ['Release']
# types:
# - completed

# TODO remove ['push'] and uncomment workflow_run
on:
workflow_run:
workflows: ['Release']
types:
- completed

jobs:
windows:
Expand Down

0 comments on commit db42d3c

Please sign in to comment.