Skip to content

Commit

Permalink
download cmake in container gcc:4.8.5 classic
Browse files Browse the repository at this point in the history
  • Loading branch information
levalup committed Jul 1, 2024
1 parent 6cdf789 commit 6e1b49c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/build-classic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Classic GCC 4.8.5
name: Build Classic

on:
push:
Expand All @@ -17,49 +17,59 @@ jobs:
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]')
runs-on: ${{matrix.os}}
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
os: [ 'centos-7' ]
gcc_version: [ '4.8.5' ]
cmake_version: [ '3.29.6' ]
build_type: [ Release ]

name: "On ${{matrix.os}} gcc-${{matrix.gcc_version}} ${{matrix.build_type}}"
name: "In Container GCC ${{matrix.gcc_version}} ${{matrix.build_type}}"

container:
image: gcc:${{matrix.gcc_version}}

steps:
- uses: actions/checkout@v1
with:
submodules: recursive

- uses: friendlyanon/fetch-core-count@v1
id: cores

- name: Set output
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: CMake & GCC
- name: Download CMake
run: >-
wget --no-check-certificate
https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_version}}/cmake-${{matrix.cmake_version}}-linux-x86_64.tar.gz
- name: Install CMake
run: |
tar -xvf cmake-${{matrix.cmake_version}}-linux-x86_64.tar.gz
echo "`pwd`/cmake-${{matrix.cmake_version}}-Linux-x86_64/bin" >> $GITHUB_PATH
- name: CMake & GCC Information
run: |
cmake --version
gcc --version
g++ --version
- name: Configure
run: >-
cmake -B "${{ steps.strings.outputs.build-output-dir }}"
cmake -B build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S "${{ github.workspace }}"
-S .
- name: Build
run: >-
cmake --build "${{ steps.strings.outputs.build-output-dir }}"
cmake --build build
--config ${{ matrix.build_type }}
- name: Test
working-directory: "${{ steps.strings.outputs.build-output-dir }}"
run: ctest --output-on-failure --build-config ${{ matrix.build_type }}
working-directory: build
run: ctest --output-on-failure --build-config ${{ matrix.build_type }}
10 changes: 6 additions & 4 deletions .github/workflows/build-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
fail-fast: false

matrix:
gcc_version: ['latest', '12', '11', '10', '9', '8', '7', '6', '5']
build_type: [Release]
gcc_version: [ 'latest', '12', '11', '10', '9', '8', '7', '6', '5' ]
build_type: [ Release ]

name: "In Container GCC ${{matrix.gcc_version}} ${{matrix.build_type}}"

Expand All @@ -46,9 +46,11 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: CMake & GCC
- name: Mount CMake
run: echo "/host_usr_local/bin" >> $GITHUB_PATH

- name: CMake & GCC Information
run: |
echo "/host_usr_local/bin" >> $GITHUB_PATH
cmake --version
gcc --version
g++ --version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
c_compiler: [gcc, clang, cl]
os: [ ubuntu-latest, windows-latest ]
build_type: [ Release ]
c_compiler: [ gcc, clang, cl ]
include:
- os: windows-latest
c_compiler: cl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/single-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
fail-fast: false

matrix:
os: [ubuntu-latest]
build_type: [Release]
os: [ ubuntu-latest ]
build_type: [ Release ]

name: "Generate Single Header ${{matrix.build_type}}"

Expand Down

0 comments on commit 6e1b49c

Please sign in to comment.