this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Using Github Actions to build (#667)

* Create ccpp.yml

use git remote set-url

run makedeb

add ccache

add devscripts

use ccache if possible

src before made

* Update ccpp.yml

* move ccache and different debug

* naming

* add artifacts

* try with a cp

* try escaping? now regex might now work

* try moving to debbuild

* move and compress debs

* try seperate jobs

* try getting source in, probably too big

* fix name

authored by

Stephen and committed by
GitHub
e3eab6f5 36d34e62

+92
+87
.github/workflows/ccpp.yml
··· 1 + name: Darling CI 2 + 3 + on: [push] 4 + 5 + jobs: 6 + build: 7 + 8 + runs-on: ubuntu-latest 9 + 10 + steps: 11 + - uses: actions/checkout@v2 12 + - name: Checkout submodules 13 + shell: bash 14 + run: | 15 + # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line 16 + # git config --global url."https://github.com/".insteadOf "git@github.com:" 17 + git remote set-url origin https://github.com/darlinghq/darling.git 18 + auth_header="$(git config --local --get http.https://github.com/.extraheader)" 19 + git submodule sync --recursive 20 + git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 21 + - name: install 22 + run: sudo apt-get install cmake clang bison flex libfuse-dev libudev-dev pkg-config libc6-dev-i386 linux-headers-generic gcc-multilib libcairo2-dev libgl1-mesa-dev libtiff5-dev libfreetype6-dev git libelf-dev libxml2-dev libegl1-mesa-dev libfontconfig1-dev libbsd-dev libxrandr-dev libxcursor-dev ccache devscripts debhelper ninja-build tree 23 + - name: Prepare ccache timestamp 24 + id: ccache_cache_timestamp 25 + shell: cmake -P {0} 26 + run: | 27 + string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) 28 + message("::set-output name=timestamp::${current_date}") 29 + - name: ccache cache files 30 + uses: actions/cache@v1.1.0 31 + with: 32 + path: /home/runner/.ccache 33 + key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } } 34 + restore-keys: | 35 + ${ { matrix.config.name } }-ccache- 36 + - name: ccache info 37 + run: ccache -s 38 + - name: make deb 39 + run: tools/makedeb 40 + - name: Move & compress DEBs 41 + run: mkdir dist && cp ../*.deb dist && tar -cJf dist.tar.xz dist 42 + - name: Upload Artifacts 43 + uses: actions/upload-artifact@v1 44 + with: 45 + name: 'debs' 46 + path: dist.tar.xz 47 + build-src: 48 + 49 + runs-on: ubuntu-latest 50 + 51 + steps: 52 + - uses: actions/checkout@v2 53 + - name: Checkout submodules 54 + shell: bash 55 + run: | 56 + # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line 57 + # git config --global url."https://github.com/".insteadOf "git@github.com:" 58 + git remote set-url origin https://github.com/darlinghq/darling.git 59 + auth_header="$(git config --local --get http.https://github.com/.extraheader)" 60 + git submodule sync --recursive 61 + git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 62 + - name: install 63 + run: sudo apt-get install cmake clang bison flex libfuse-dev libudev-dev pkg-config libc6-dev-i386 linux-headers-generic gcc-multilib libcairo2-dev libgl1-mesa-dev libtiff5-dev libfreetype6-dev git libelf-dev libxml2-dev libegl1-mesa-dev libfontconfig1-dev libbsd-dev libxrandr-dev libxcursor-dev ccache devscripts debhelper ninja-build tree 64 + - name: Prepare ccache timestamp 65 + id: ccache_cache_timestamp 66 + shell: cmake -P {0} 67 + run: | 68 + string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) 69 + message("::set-output name=timestamp::${current_date}") 70 + - name: ccache cache files 71 + uses: actions/cache@v1.1.0 72 + with: 73 + path: /home/runner/.ccache 74 + key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } } 75 + restore-keys: | 76 + ${ { matrix.config.name } }-ccache- 77 + - name: ccache info 78 + run: ccache -s 79 + - name: make deb src 80 + run: tools/makedeb --dsc 81 + - name: Move & compress DEBs 82 + run: mkdir source && cp ../*~testing.* source && tar -cJf source.tar.xz source 83 + - name: Upload Artifacts 84 + uses: actions/upload-artifact@v1 85 + with: 86 + name: 'source' 87 + path: source.tar.xz
+5
CMakeLists.txt
··· 16 16 "clang++-7") 17 17 endif(NOT DEFINED CMAKE_CXX_COMPILER) 18 18 19 + find_program(CCACHE_PROGRAM ccache) 20 + if(CCACHE_PROGRAM) 21 + set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") 22 + endif() 23 + 19 24 SET(CMAKE_SKIP_RPATH TRUE) 20 25 21 26 project(darling)