-
Notifications
You must be signed in to change notification settings - Fork 8
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 #50 from KatrinaAS/patch-4
Remove CI
- Loading branch information
Showing
3 changed files
with
0 additions
and
294 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -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 | ||
|