From d81c9645bc27453122925d38b54df2c9a02e8194 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 13:19:55 +0000 Subject: [PATCH 01/21] Run build test --- .github/workflows/build-bin.yml | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/build-bin.yml diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml new file mode 100644 index 00000000..a7ef244b --- /dev/null +++ b/.github/workflows/build-bin.yml @@ -0,0 +1,58 @@ +name: build-bin + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + name: "${{ matrix.SECCOMP == '1' && 'seccomp' || 'no-seccomp' }}" + runs-on: ubuntu-latest + env: + BUILD_WRAPPER_OUT_DIR: tmp + strategy: + fail-fast: false + matrix: + SECCOMP: [ 0, 1 ] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install sonar-scanner and build-wrapper + uses: sonarsource/sonarcloud-github-c-cpp@v1 + + - name: Install build dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -qq clang-tools-12 curl gdb lcov libarchive-dev libtalloc-dev sloccount strace swig uthash-dev python3-dev lzop + + - name: Gather analytics + run: sloccount --details . + + - name: Build elf loader, proot, and care + run: | + build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make -C src loader.elf loader-m32.elf build.h + build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} env CFLAGS=--coverage LDFLAGS=--coverage make -C src proot care V=1 + + - name: Execute test suite + continue-on-error: true + timeout-minutes: 10 + run: | + build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} env ${{ matrix.SECCOMP == '0' && 'PROOT_NO_SECCOMP=1' || '' }} PATH=/bin:/usr/bin:/sbin:/usr/sbin:$PWD/src make -C test -j $(nproc) QUIET_LOG=$PWD/test.log + + - name: Output test log + if: always() + continue-on-error: true + run: ([ -f test.log ] && cat test.log) || true + + - name: Run sonar-scanner + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} + run: | + sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" From a81c1ec3076a21cebd0934a2bd35354843d9d0d9 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 13:25:30 +0000 Subject: [PATCH 02/21] Disable sonar-scanner --- .github/workflows/build-bin.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index a7ef244b..b86d4545 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -23,9 +23,6 @@ jobs: with: fetch-depth: 0 - - name: Install sonar-scanner and build-wrapper - uses: sonarsource/sonarcloud-github-c-cpp@v1 - - name: Install build dependencies run: | sudo apt-get update -qq @@ -50,9 +47,3 @@ jobs: continue-on-error: true run: ([ -f test.log ] && cat test.log) || true - - name: Run sonar-scanner - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} - run: | - sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" From 0deb5a211653932e3e2243d6e2565a430d8bffd5 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 13:31:47 +0000 Subject: [PATCH 03/21] Switched to Ubuntu focal LTS version --- .github/workflows/build-bin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index b86d4545..d063b7f3 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -10,7 +10,7 @@ on: jobs: build: name: "${{ matrix.SECCOMP == '1' && 'seccomp' || 'no-seccomp' }}" - runs-on: ubuntu-latest + runs-on: ubuntu-20.04.6 env: BUILD_WRAPPER_OUT_DIR: tmp strategy: From 248ec241479cce8918adffcc47124c3e5903d148 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:07:43 +0000 Subject: [PATCH 04/21] Fixed typo in ubuntu version number --- .github/workflows/build-bin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index d063b7f3..47f0daaa 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -10,7 +10,7 @@ on: jobs: build: name: "${{ matrix.SECCOMP == '1' && 'seccomp' || 'no-seccomp' }}" - runs-on: ubuntu-20.04.6 + runs-on: ubuntu-20.04 env: BUILD_WRAPPER_OUT_DIR: tmp strategy: From ce7d254ff68f7a2b3d25511df424436633f1c599 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:16:58 +0000 Subject: [PATCH 05/21] Write another action to build the artifact --- .github/workflows/build-bin.yml | 92 +++++++++++++++++++-------------- 1 file changed, 54 insertions(+), 38 deletions(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index 47f0daaa..0740178d 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -1,49 +1,65 @@ -name: build-bin +name: Build and Release on: push: - branches: - - master - pull_request: - types: [opened, synchronize, reopened] + tags: + - '*' jobs: build: - name: "${{ matrix.SECCOMP == '1' && 'seccomp' || 'no-seccomp' }}" runs-on: ubuntu-20.04 - env: - BUILD_WRAPPER_OUT_DIR: tmp - strategy: - fail-fast: false - matrix: - SECCOMP: [ 0, 1 ] - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install build dependencies - run: | - sudo apt-get update -qq - sudo apt-get install -qq clang-tools-12 curl gdb lcov libarchive-dev libtalloc-dev sloccount strace swig uthash-dev python3-dev lzop - - - name: Gather analytics - run: sloccount --details . - - - name: Build elf loader, proot, and care - run: | - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make -C src loader.elf loader-m32.elf build.h - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} env CFLAGS=--coverage LDFLAGS=--coverage make -C src proot care V=1 + - name: Check out the code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libtalloc-dev + + - name: Build the project + run: | + make -C src loader.elf loader-m32.elf build.h + make -C src proot + + - name: Create a package + run: tar -zcvf proot.tar.gz src/proot - - name: Execute test suite - continue-on-error: true - timeout-minutes: 10 - run: | - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} env ${{ matrix.SECCOMP == '0' && 'PROOT_NO_SECCOMP=1' || '' }} PATH=/bin:/usr/bin:/sbin:/usr/sbin:$PWD/src make -C test -j $(nproc) QUIET_LOG=$PWD/test.log + - name: Run the test suite + run: make -C test - - name: Output test log - if: always() - continue-on-error: true - run: ([ -f test.log ] && cat test.log) || true + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: proot-executable + path: proot.tar.gz + release: + needs: build + runs-on: ubuntu-20.04 + steps: + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: proot-executable + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./proot-executable/proot.tar.gz + asset_name: proot.tar.gz + asset_content_type: application/octet-stream \ No newline at end of file From 2cfea8ecdf4962301e8581aebc539615d546d2bb Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:20:31 +0000 Subject: [PATCH 06/21] Include the master branch as well --- .github/workflows/build-bin.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index 0740178d..5022f099 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -4,6 +4,8 @@ on: push: tags: - '*' + branches: + - master jobs: build: From 5009c02f3d40589cf90ea32fa527d2dd5ca456bb Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:21:43 +0000 Subject: [PATCH 07/21] Disable the original action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c0f4c8b7..3176de2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: build on: push: branches: - - master + - notmaster pull_request: types: [opened, synchronize, reopened] From 2c6c5dc61763546c78855d26c79f2ec2430eb157 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:27:57 +0000 Subject: [PATCH 08/21] Move the proot into upper folder --- .github/workflows/build-bin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index 5022f099..f3576bbc 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -27,7 +27,7 @@ jobs: make -C src proot - name: Create a package - run: tar -zcvf proot.tar.gz src/proot + run: cd src && tar -zcvf ../proot.tar.gz proot - name: Run the test suite run: make -C test From 2a5d9c56313487332f7def99081d484b4aba86b3 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:29:53 +0000 Subject: [PATCH 09/21] Temporary disable the the test suite --- .github/workflows/build-bin.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index f3576bbc..6ab97ea9 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -31,6 +31,7 @@ jobs: - name: Run the test suite run: make -C test + if: false - name: Upload Artifact uses: actions/upload-artifact@v2 From 4d8a88471deedbcaea7bb9b07b066140f7de8b13 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:33:32 +0000 Subject: [PATCH 10/21] Disabled for master --- .github/workflows/build-bin.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index 6ab97ea9..b2741706 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -4,8 +4,6 @@ on: push: tags: - '*' - branches: - - master jobs: build: From 2536fc01210def345cf9c260bb92c18a5a7c1e56 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:36:37 +0000 Subject: [PATCH 11/21] Fixed upload source asset path --- .github/workflows/build-bin.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index b2741706..12c6b25c 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -25,7 +25,9 @@ jobs: make -C src proot - name: Create a package - run: cd src && tar -zcvf ../proot.tar.gz proot + run: | + mkdir -v dist + cd src && tar -zcvf ../dist/proot.tar.gz proot - name: Run the test suite run: make -C test @@ -61,6 +63,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./proot-executable/proot.tar.gz + asset_path: ./dist/proot.tar.gz asset_name: proot.tar.gz asset_content_type: application/octet-stream \ No newline at end of file From 915534928a6f9e7bad64b6a219d133b3b2d4b69b Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:41:17 +0000 Subject: [PATCH 12/21] Fixed upload artifact name --- .github/workflows/build-bin.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index 12c6b25c..3322f4ef 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -36,7 +36,7 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v2 with: - name: proot-executable + name: dist path: proot.tar.gz release: @@ -46,7 +46,7 @@ jobs: - name: Download Artifact uses: actions/download-artifact@v2 with: - name: proot-executable + name: dist - name: Create Release id: create_release uses: actions/create-release@v1 From d8f38c329af81b888ceb1ff5d0ae145abf4e0f91 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:44:24 +0000 Subject: [PATCH 13/21] Fixed upload artifact path --- .github/workflows/build-bin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index 3322f4ef..bb472b9e 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -37,7 +37,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: dist - path: proot.tar.gz + path: dist/proot.tar.gz release: needs: build From 2616abc236c1406936a68d7c28678ef1d33b87cc Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:49:12 +0000 Subject: [PATCH 14/21] Add ngihtly build for master for test --- .github/workflows/nightly-build.yml | 70 +++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/nightly-build.yml diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml new file mode 100644 index 00000000..656ef011 --- /dev/null +++ b/.github/workflows/nightly-build.yml @@ -0,0 +1,70 @@ +name: Nightly build + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Check out the code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libtalloc-dev + + - name: Build the project + run: | + make -C src loader.elf loader-m32.elf build.h + make -C src proot + + - name: Create a package + run: | + mkdir -v dist + cd src && tar -zcvf ../dist/proot.tar.gz proot + ls -lhrt + ls -lh dist + + - name: Run the test suite + run: make -C test + if: false + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/proot.tar.gz + + release: + needs: build + runs-on: ubuntu-20.04 + steps: + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: dist + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./dist/proot.tar.gz + asset_name: proot.tar.gz + asset_content_type: application/octet-stream \ No newline at end of file From 04e756ac7300448a2fed34ff8d996450304e52ff Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:49:46 +0000 Subject: [PATCH 15/21] Move test suite --- .github/workflows/nightly-build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 656ef011..4e7e5cbf 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -24,6 +24,10 @@ jobs: make -C src loader.elf loader-m32.elf build.h make -C src proot + - name: Run the test suite + run: make -C test + if: false + - name: Create a package run: | mkdir -v dist @@ -31,10 +35,6 @@ jobs: ls -lhrt ls -lh dist - - name: Run the test suite - run: make -C test - if: false - - name: Upload Artifact uses: actions/upload-artifact@v2 with: From 77bec63c9588a2bbc47519f0222356ed8e11f144 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:51:06 +0000 Subject: [PATCH 16/21] Fixed the tar file path --- .github/workflows/nightly-build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 4e7e5cbf..6c2fb067 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -30,16 +30,15 @@ jobs: - name: Create a package run: | - mkdir -v dist - cd src && tar -zcvf ../dist/proot.tar.gz proot + mv src/proot ./proot + tar -zcvf ./proot.tar.gz proot ls -lhrt - ls -lh dist - name: Upload Artifact uses: actions/upload-artifact@v2 with: name: dist - path: dist/proot.tar.gz + path: proot.tar.gz release: needs: build From d4426ea5a0ed5e3e8ea15c4a40de5201766a3ab1 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:55:05 +0000 Subject: [PATCH 17/21] REname the tag and release name to nightly build --- .github/workflows/nightly-build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 6c2fb067..9f9963d7 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -53,11 +53,12 @@ jobs: uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CURRENT_DATE: ${{ github.event.push.timestamp }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: nightly-${{ github.run_number }} + release_name: Nightly Build ${{ env.CURRENT_DATE }} draft: false - prerelease: false + prerelease: true - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: From eaa1e6bb1cab0505fe7eeee7ef9d4f5cec62db68 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:56:58 +0000 Subject: [PATCH 18/21] Fixed the asset path --- .github/workflows/nightly-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 9f9963d7..44dd8ad6 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -65,6 +65,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist/proot.tar.gz + asset_path: ./proot.tar.gz asset_name: proot.tar.gz asset_content_type: application/octet-stream \ No newline at end of file From 553465de3d749dbda7a060a69bdb7afc9e773f7e Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 14:58:59 +0000 Subject: [PATCH 19/21] Create a new branch for build actions --- .github/workflows/nightly-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 44dd8ad6..fa061b56 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -3,7 +3,7 @@ name: Nightly build on: push: branches: - - master + - build-01 jobs: build: From eedf37169d4fb07aa163edb0bef05d89a5d10ad8 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 15:07:19 +0000 Subject: [PATCH 20/21] Enabled build for tags again --- .github/workflows/build-bin.yml | 24 +++++++++++++----------- .github/workflows/nightly-build.yml | 3 ++- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index bb472b9e..7af115c7 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -1,9 +1,9 @@ -name: Build and Release +name: Nightly build on: push: tags: - - '*' + - 'v*' jobs: build: @@ -24,20 +24,21 @@ jobs: make -C src loader.elf loader-m32.elf build.h make -C src proot - - name: Create a package - run: | - mkdir -v dist - cd src && tar -zcvf ../dist/proot.tar.gz proot - - name: Run the test suite run: make -C test if: false + - name: Create a package + run: | + mv src/proot ./proot + tar -zcvf ./proot.tar.gz proot + ls -lhrt + - name: Upload Artifact uses: actions/upload-artifact@v2 with: name: dist - path: dist/proot.tar.gz + path: proot.tar.gz release: needs: build @@ -52,9 +53,10 @@ jobs: uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CURRENT_DATE: ${{ github.event.push.timestamp }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: ${{ github.ref_name }} + release_name: Release ${{ github.ref_name }} draft: false prerelease: false - name: Upload Release Asset @@ -63,6 +65,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist/proot.tar.gz + asset_path: ./proot.tar.gz asset_name: proot.tar.gz asset_content_type: application/octet-stream \ No newline at end of file diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index fa061b56..c89be255 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -7,6 +7,7 @@ on: jobs: build: + if: true runs-on: ubuntu-20.04 steps: - name: Check out the code @@ -26,7 +27,7 @@ jobs: - name: Run the test suite run: make -C test - if: false + if: true - name: Create a package run: | From c0eeed6bf3c33069c769ea271d40393dec70d3f8 Mon Sep 17 00:00:00 2001 From: "Jimmy.|\\|" Date: Thu, 8 Feb 2024 15:08:29 +0000 Subject: [PATCH 21/21] Rename the build action --- .github/workflows/build-bin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-bin.yml b/.github/workflows/build-bin.yml index 7af115c7..70ccaf2f 100644 --- a/.github/workflows/build-bin.yml +++ b/.github/workflows/build-bin.yml @@ -1,4 +1,4 @@ -name: Nightly build +name: Release build on: push: