Skip to content

Commit

Permalink
Merge pull request #32 from AntaresSimulatorTeam/feature/oracle8
Browse files Browse the repository at this point in the history
Oracle8 support
  • Loading branch information
JasonMarechal25 authored Jul 25, 2023
2 parents 5b34ec5 + 356f6e2 commit f77d24d
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/oracle8.yml
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 }}
52 changes: 52 additions & 0 deletions .github/workflows/releasesOracle8.yml
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

0 comments on commit f77d24d

Please sign in to comment.