From 98c0f4776845b903439aef8a209072881ec7e62c Mon Sep 17 00:00:00 2001 From: Pierre Zemb Date: Tue, 20 Sep 2022 19:37:19 +0200 Subject: [PATCH 1/3] build mako --- .github/workflows/make.yml | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/make.yml diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml new file mode 100644 index 0000000..87f0dea --- /dev/null +++ b/.github/workflows/make.yml @@ -0,0 +1,62 @@ +# This is a basic workflow to help you get started with Actions + +name: Build mako + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + # “At 05:00 on Sunday.” + # https://crontab.guru/#0_5_*_*_0 + schedule: + - cron: "0 5 * * 0" + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # Building FDB + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + container: foundationdb/build:centos7-latest + + strategy: + matrix: + branch: ["main"] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: git clone + run: git clone https://github.com/apple/foundationdb.git + working-directory: /root + + - name: git checkout + run: git checkout $FDB_BRANCH + working-directory: /root/foundationdb + env: + FDB_BRANCH: ${{ matrix.branch }} + + - name: mkdir build_output + run: mkdir build_output + working-directory: /root + + - name: cmake + run: source /opt/rh/devtoolset-8/enable && source /opt/rh/rh-python38/enable && cmake -G Ninja ../foundationdb + working-directory: /root/build_output + + - name: ninja + run: source /opt/rh/devtoolset-8/enable && source /opt/rh/rh-python38/enable && ninja -j2 mako + working-directory: /root/build_output + + - name: list size + run: du -skh * + working-directory: /root/build_output + + - name: search mako + run: "find . | grep mako" + working-directory: /root/build_output From e3a3a25a196cd9d28df918a36338e295ea755f67 Mon Sep 17 00:00:00 2001 From: Pierre Zemb Date: Tue, 20 Sep 2022 20:02:41 +0200 Subject: [PATCH 2/3] Update make.yml --- .github/workflows/make.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index 87f0dea..4007d6e 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -27,7 +27,7 @@ jobs: strategy: matrix: - branch: ["main"] + branch: ["main", "release-7.1"] # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -60,3 +60,11 @@ jobs: - name: search mako run: "find . | grep mako" working-directory: /root/build_output + + - name: upload mako + uses: actions/upload-artifact@v2 + with: + name: mako_${{ matrix.branch }} + path: /root/build_output/bin/mako + if-no-files-found: error + retention-days: 10 From 6d1f191db10ed479c9d9c125084f412144f78361 Mon Sep 17 00:00:00 2001 From: Pierre Zemb Date: Tue, 20 Sep 2022 20:02:53 +0200 Subject: [PATCH 3/3] Rename make.yml to mako.yml --- .github/workflows/{make.yml => mako.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{make.yml => mako.yml} (100%) diff --git a/.github/workflows/make.yml b/.github/workflows/mako.yml similarity index 100% rename from .github/workflows/make.yml rename to .github/workflows/mako.yml