-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from AntaresSimulatorTeam/feature/oracle8
Oracle8 support
- Loading branch information
Showing
2 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Oracle 8 CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/* | ||
- features/* | ||
- fix/* | ||
jobs: | ||
|
||
build: | ||
|
||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
strategy: | ||
matrix: | ||
buildtype: [Release,Debug] | ||
include: | ||
- system_build: OFF | ||
|
||
runs-on: ubuntu-latest | ||
container: 'oraclelinux:8' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install libraries | ||
run: | | ||
dnf update -y | ||
dnf install -y git epel-release redhat-lsb-core autoconf automake libtool gtk2-devel gcc gcc-c++ make scl-utils | ||
dnf install -y cmake3 gcc-toolset-9-toolchain | ||
- name: Configure and build | ||
run: | | ||
source /opt/rh/gcc-toolset-9/enable | ||
#git 2.x must be enabled for Coin compilation with CMake ExternalProject_Add | ||
cmake3 -B _build -S . -DBUILD_not_system=ON -DBUILD_system=${{ matrix.system_build }} -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DDEPS_INSTALL_DIR=rte-antares-deps-${{ matrix.buildtype }} | ||
- name: Archive upload | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: antares-deps-oracle8-${{ matrix.buildtype }} | ||
path: | | ||
rte-antares-deps-${{ matrix.buildtype }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Release asset upload (Oracle8) | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
strategy: | ||
matrix: | ||
buildtype: [Release,Debug] | ||
include: | ||
- system_build: OFF | ||
|
||
runs-on: ubuntu-latest | ||
container: 'oraclelinux:8' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
|
||
- name: Install libraries | ||
run: | | ||
dnf update -y | ||
dnf install -y git epel-release redhat-lsb-core autoconf automake libtool gtk2-devel gcc gcc-c++ make scl-utils | ||
dnf install -y cmake3 gcc-toolset-9-toolchain | ||
- name: Configure and build | ||
run: | | ||
source /opt/rh/gcc-toolset-9/enable | ||
#git 2.x must be enabled for Coin compilation with CMake ExternalProject_Add | ||
cmake3 -B _build -S . -DBUILD_not_system=ON -DBUILD_system=${{ matrix.system_build }} -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DDEPS_INSTALL_DIR=rte-antares-deps-${{ matrix.buildtype }} | ||
- name: Create archive | ||
run: | | ||
tar cvfhz rte-antares-deps-oracle8-${{ matrix.buildtype }}.tar.gz rte-antares-deps-${{ matrix.buildtype }} | ||
- name: Upload .deb | ||
uses: actions/[email protected] | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: rte-antares-deps-oracle8-${{ matrix.buildtype }}.tar.gz | ||
asset_name: rte-antares-deps-oracle8-${{ matrix.buildtype }}.tar.gz | ||
asset_content_type: application/gzip |