Skip to content

Commit

Permalink
Merge pull request #50 from KatrinaAS/patch-4
Browse files Browse the repository at this point in the history
Remove CI
  • Loading branch information
DanielKrawisz authored Nov 18, 2022
2 parents 50566ed + 36a0bdd commit 01fec17
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 294 deletions.
102 changes: 0 additions & 102 deletions .github/workflows/commit-builds.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/prcheck-build.yml

This file was deleted.

127 changes: 0 additions & 127 deletions .github/workflows/stable-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,130 +22,3 @@ jobs:
echo "Got release version ${{ steps.release.outputs.version }}"
outputs:
releaseVersion: ${{ steps.release.outputs.tag_name }}
prep-conan:
runs-on: ubuntu-latest
needs:
- prep
steps:
- uses: actions/checkout@v2
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Cache Conan packages
uses: actions/cache@v3
id: cache-conan
env:
cache-name: cache-conan
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/conanfile.py') }}
path: |
~/.conan/
- if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
name: Create profiles
run: |
conan profile new 10 --detect
conan profile new 11 --detect
- if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
name: Update profile settings
run: |
conan profile update settings.compiler.libcxx=libstdc++11 10
conan profile update env.CC=/usr/bin/gcc-10 10
conan profile update env.CXX=/usr/bin/g++-10 10
conan profile update settings.compiler.libcxx=libstdc++11 11
conan profile update env.CC=/usr/bin/gcc-11 11
conan profile update env.CXX=/usr/bin/g++-11 11
- if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
name: Update profile version
run: |
conan profile update settings.compiler.version=10 10
conan profile update settings.compiler.version=11 11
- if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
name: Add conan remote
run: |
conan config set general.revisions_enabled=True
conan remote add proofofwork https://conan.pow.co/artifactory/api/conan/conan
conan user -p ${{ secrets.CONAN_USER_KEY }} -r proofofwork github
upload:
runs-on: ubuntu-latest
needs:
- prep-conan
- prep
steps:
- name: Install correct gcc
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt install -y gcc-10 g++-10 gcc-11 g++-11
- uses: actions/checkout@v2
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Cache Conan packages
uses: actions/cache@v3
env:
cache-name: cache-conan
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/conanfile.py') }}
path: |
~/.conan/
- name: Run Conan
run: |
export CURRENT_VERSION="${{ needs.prep.outputs.releaseVersion }}"
VERBOSE=1 CXX=/usr/bin/g++-10 CC=/usr/bin/gcc-10 conan create . proofofwork/stable -pr=10 -pr:b=10
VERBOSE=1 CXX=/usr/bin/g++-11 CC=/usr/bin/gcc-11 conan create . proofofwork/stable -pr=11 -pr:b=11
conan upload gigamonkey/${CURRENT_VERSION}@proofofwork/stable -r proofofwork --all
release:
runs-on: ubuntu-latest
needs:
- prep
- prep-conan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Install correct gcc
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt install -y gcc-10 g++-10 gcc-11 g++-11
- uses: actions/checkout@v2
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Cache Conan packages
uses: actions/cache@v3
env:
cache-name: cache-conan
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/conanfile.py') }}
path: |
~/.conan/
- name: prepare 10 release package
run: |
mkdir build10
cd build10
export CURRENT_VERSION="${{ needs.prep.outputs.releaseVersion }}"
VERBOSE=1 CXX=/usr/bin/g++-10 CC=/usr/bin/gcc-10 conan install .. -r=proofofwork -pr=10 -pr:b=10
VERBOSE=1 CXX=/usr/bin/g++-10 CC=/usr/bin/gcc-10 cmake .. -DPACKAGE_TESTS=Off
VERBOSE=1 CXX=/usr/bin/g++-10 CC=/usr/bin/gcc-10 cmake --build .
cp -r ../include ./
tar -czvf "gigamonkey-${CURRENT_VERSION}-gcc10-linux.tar.gz" lib include
cd ..
- name: prepare 11 release package
run: |
mkdir build11
cd build11
export CURRENT_VERSION="${{ needs.prep.outputs.releaseVersion }}"
VERBOSE=1 CXX=/usr/bin/g++-11 CC=/usr/bin/gcc-11 conan install .. -r=proofofwork -pr=11 -pr:b=11
VERBOSE=1 CXX=/usr/bin/g++-11 CC=/usr/bin/gcc-11 cmake .. -DPACKAGE_TESTS=Off
VERBOSE=1 CXX=/usr/bin/g++-11 CC=/usr/bin/gcc-11 cmake --build .
cp -r ../include ./
tar -czvf "gigamonkey-${CURRENT_VERSION}-gcc11-linux.tar.gz" lib include
- name: Upload release 10
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ needs.prep.outputs.releaseVersion }}
file: build10/gigamonkey-${{ needs.prep.outputs.releaseVersion }}-gcc10-linux.tar.gz
asset_name: gigamonkey-${{ needs.prep.outputs.releaseVersion }}-gcc10-linux.tar.gz
- name: Upload release
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ needs.prep.outputs.releaseVersion }}
file: build11/gigamonkey-${{ needs.prep.outputs.releaseVersion }}-gcc11-linux.tar.gz
asset_name: gigamonkey-${{ needs.prep.outputs.releaseVersion }}-gcc11-linux.tar.gz

0 comments on commit 01fec17

Please sign in to comment.