From 8d193f135644eecfa2a4f9c9a8a1a97467483898 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 30 Nov 2022 18:00:13 +0100 Subject: [PATCH 1/3] testing auto release mechanism --- .github/workflows/release.yml | 57 +++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..48705ca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,57 @@ +name: Release Assist + +on: + push: + tags: + - 'v\d*' + +env: + LC_ALL: C + +jobs: + build: + name: Upload Release Asset + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Update Software Database + run: sudo apt-get update + - name: Install Build Requirements + run: sudo apt-get install -y autoconf automake autopoint gettext libtool + - name: Build Step "autoreconf" + run: autoreconf -vis . + - name: Build Step "configure" + run: ./configure + - name: Build Step "make" + run: make -j$(nproc) -l$(nproc) + - name: Build Step "make check" + run: make -j$(nproc) -l$(nproc) check + - name: Build Step "make distcheck" + run: | + make -j$(nproc) -l$(nproc) distcheck + ls ndim-utils-*.tar.xz | while read tarball; do if test -f "$tarball"; then echo "RELEASE_TARBALL=$tarball" >> $GITHUB_ENV; break; fi; done + - name: Create Release + id: create_release + if: false + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: true + prerelease: false + - name: Upload Release Assets + id: upload-release-assets + if: false + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ env.RELEASE_TARBALL }} + asset_name: ${{ env.RELEASE_TARBALL }} + asset_content_type: application/x-xz From 72224769faddd842ac7105413bc23ebbf0c6d833 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 30 Nov 2022 18:30:25 +0100 Subject: [PATCH 2/3] try release and release-asset --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48705ca..b89a7fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: ls ndim-utils-*.tar.xz | while read tarball; do if test -f "$tarball"; then echo "RELEASE_TARBALL=$tarball" >> $GITHUB_ENV; break; fi; done - name: Create Release id: create_release - if: false + if: true uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -46,7 +46,7 @@ jobs: prerelease: false - name: Upload Release Assets id: upload-release-assets - if: false + if: true uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From feef994222ea023eca98673550d13622bc79472b Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 30 Nov 2022 22:22:51 +0100 Subject: [PATCH 3/3] XXX python info --- .github/workflows/c-cpp.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 516d672..13158c1 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -31,6 +31,10 @@ jobs: - name: env-info run: ./.github/scripts/env-info.sh shell: sh + - name: python? + run: | + python --version + python3 --version - name: autoreconf run: autoreconf -vis . - name: configure