From 391f0fa826fc0f87c42717d57529066b16c2e39d Mon Sep 17 00:00:00 2001 From: sanchayanghosh <49550930+sanchayanghosh@users.noreply.github.com> Date: Sat, 20 Mar 2021 19:08:25 +0530 Subject: [PATCH 1/4] Added an action to build an ubuntu python binary for Ubuntu Focal --- .github/workflows/build_ubuntu_artifacts.yml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build_ubuntu_artifacts.yml diff --git a/.github/workflows/build_ubuntu_artifacts.yml b/.github/workflows/build_ubuntu_artifacts.yml new file mode 100644 index 000000000000000..74c98cfe71c8a08 --- /dev/null +++ b/.github/workflows/build_ubuntu_artifacts.yml @@ -0,0 +1,22 @@ +name: build-ubuntu-artifacts +on: + push: + branches: + - master +jobs: + name: 'Build Python Binaries' + runs-on: ubuntu-latest + steps: + - name: 'checkout the branch' + uses: actions/checkout@v2 + - name: 'configure' + run: ./configure + - name: 'build Python' + run: make + - name: 'Install Python' + run: make install DESTDIR=build_binary + - name: 'Uplaod the build artifact' + uses: actions/upload-artifact@v2 + with: + name: python-binary + path: build_binary \ No newline at end of file From 79a2350ccdae24d90fb1fa4350e0d0776801e9ae Mon Sep 17 00:00:00 2001 From: sanchayanghosh <49550930+sanchayanghosh@users.noreply.github.com> Date: Sat, 20 Mar 2021 19:10:40 +0530 Subject: [PATCH 2/4] Made a correction to the synyax at name of the job --- .github/workflows/build_ubuntu_artifacts.yml | 32 ++++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build_ubuntu_artifacts.yml b/.github/workflows/build_ubuntu_artifacts.yml index 74c98cfe71c8a08..abb90e858c79c8b 100644 --- a/.github/workflows/build_ubuntu_artifacts.yml +++ b/.github/workflows/build_ubuntu_artifacts.yml @@ -4,19 +4,19 @@ on: branches: - master jobs: - name: 'Build Python Binaries' - runs-on: ubuntu-latest - steps: - - name: 'checkout the branch' - uses: actions/checkout@v2 - - name: 'configure' - run: ./configure - - name: 'build Python' - run: make - - name: 'Install Python' - run: make install DESTDIR=build_binary - - name: 'Uplaod the build artifact' - uses: actions/upload-artifact@v2 - with: - name: python-binary - path: build_binary \ No newline at end of file + build-python-binaries: + runs-on: ubuntu-latest + steps: + - name: 'checkout the branch' + uses: actions/checkout@v2 + - name: 'configure' + run: ./configure + - name: 'build Python' + run: make + - name: 'Install Python' + run: make install DESTDIR=build_binary + - name: 'Uplaod the build artifact' + uses: actions/upload-artifact@v2 + with: + name: python-binary + path: build_binary \ No newline at end of file From c3b0f363eed241a93c002924679572b60430644e Mon Sep 17 00:00:00 2001 From: sanchayanghosh <49550930+sanchayanghosh@users.noreply.github.com> Date: Sat, 20 Mar 2021 21:03:21 +0530 Subject: [PATCH 3/4] Added a hub release action --- .github/workflows/build_ubuntu_artifacts.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_ubuntu_artifacts.yml b/.github/workflows/build_ubuntu_artifacts.yml index abb90e858c79c8b..b9a4fbe7f749601 100644 --- a/.github/workflows/build_ubuntu_artifacts.yml +++ b/.github/workflows/build_ubuntu_artifacts.yml @@ -19,4 +19,6 @@ jobs: uses: actions/upload-artifact@v2 with: name: python-binary - path: build_binary \ No newline at end of file + path: build_binary + - name: 'Create a release' + run: hub release create -m "TestRel" \ No newline at end of file From 37aca7dabcbc4e9f17d1071dd388ff05d5cb1675 Mon Sep 17 00:00:00 2001 From: sanchayanghosh <49550930+sanchayanghosh@users.noreply.github.com> Date: Sat, 20 Mar 2021 21:08:52 +0530 Subject: [PATCH 4/4] Added hub --- .github/workflows/build_ubuntu_artifacts.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build_ubuntu_artifacts.yml b/.github/workflows/build_ubuntu_artifacts.yml index b9a4fbe7f749601..8f09fc476419a42 100644 --- a/.github/workflows/build_ubuntu_artifacts.yml +++ b/.github/workflows/build_ubuntu_artifacts.yml @@ -20,5 +20,8 @@ jobs: with: name: python-binary path: build_binary + - name: 'Install hub' + run: sudo apt update + - run: sudo apt install hub - name: 'Create a release' run: hub release create -m "TestRel" \ No newline at end of file