From 3defc1ae90191c6b72ef46ea5a866a11e6aff2e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:56:22 +0200 Subject: [PATCH 01/14] remove submodule --- .gitmodules | 3 --- arturo | 1 - 2 files changed, 4 deletions(-) delete mode 160000 arturo diff --git a/.gitmodules b/.gitmodules index 646b278..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "arturo"] - path = arturo - url = https://github.com/arturo-lang/arturo.git diff --git a/arturo b/arturo deleted file mode 160000 index c0e7c3f..0000000 --- a/arturo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c0e7c3f56de4a84c219eca3315dd6a4a128c8e88 From 4fb115a375617322cc3089e09024ba3e981170f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:31:13 +0200 Subject: [PATCH 02/14] added new implementation --- .github/workflows/buildnightlies.yml | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/buildnightlies.yml diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml new file mode 100644 index 0000000..9188b94 --- /dev/null +++ b/.github/workflows/buildnightlies.yml @@ -0,0 +1,51 @@ +name: Build Nightlies + +on: + push: + branches: + - '**' + - actions + + pull_request: + branches: + - '*' + + schedule: + - cron: '0 0 * * *' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - {os: ubuntu-latest, arch: amd64, mode: full, shell: bash} + - {os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} + - {os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} + - {os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} + - {os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} + - {os: macOS-12, arch: amd64, mode: full, shell: bash} + - {os: macOS-12, arch: amd64, mode: mini, shell: bash} + - {os: macos-latest, arch: arm64, mode: full, shell: bash} + - {os: macos-latest, arch: arm64, mode: mini, shell: bash} + defaults: + run: + shell: ${{ matrix.shell }} + steps: + - uses: actions/checkout@v4 + + - name: Install Arturo + uses: arturo-lang/arturo-action@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + mode: ${{ matrix.mode }} + arch: ${{ matrix.arch }} + + - if: matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64' + name: Run tests + run: | + arturo -v \ No newline at end of file From f98238afcd43e011ecf2761e83e198c06ec539ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:57:28 +0200 Subject: [PATCH 03/14] updated implementation --- .github/workflows/buildnightlies.yml | 89 ++++++++++++++++++++++++---- 1 file changed, 76 insertions(+), 13 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index 9188b94..c402cd3 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -23,20 +23,32 @@ jobs: strategy: matrix: include: - - {os: ubuntu-latest, arch: amd64, mode: full, shell: bash} - - {os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} - - {os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} - - {os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} - - {os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} - - {os: macOS-12, arch: amd64, mode: full, shell: bash} - - {os: macOS-12, arch: amd64, mode: mini, shell: bash} - - {os: macos-latest, arch: arm64, mode: full, shell: bash} - - {os: macos-latest, arch: arm64, mode: mini, shell: bash} + - {name: "Linux (amd64 / full)", os: ubuntu-latest, arch: amd64, mode: full, shell: bash} + - {name: "Linux (amd64 / safe)", os: ubuntu-latest, arch: amd64, mode: safe, shell: bash} + - {name: "Linux (amd64 / mini)", os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} + - {name: "Linux (arm64 / mini)", os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} + - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} + - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} + - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} + - {name: "macOS (amd64 / full)", os: macOS-12, arch: amd64, mode: full, shell: bash} + - {name: "macOS (amd64 / mini)", os: macOS-12, arch: amd64, mode: mini, shell: bash} + - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} + - {name: "macOS (arm64 / mini)", os: macos-latest, arch: arm64, mode: mini, shell: bash} + + name: ${{ matrix.name }} defaults: run: shell: ${{ matrix.shell }} steps: - - uses: actions/checkout@v4 + - name: Get current date + run: echo $(date -u "+%F") >> currentDate + + - name: "Read date" + uses: pCYSl5EDgo/cat@master + id: currentDate + with: + path: currentDate + trim: true - name: Install Arturo uses: arturo-lang/arturo-action@main @@ -44,8 +56,59 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} mode: ${{ matrix.mode }} arch: ${{ matrix.arch }} + metadata: nightly.${{ steps.currentDate.outputs.text }} + + - if: (matrix.mode != 'safe' && matrix.mode != 'web') && (matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64') + name: Run tests (Old) + run: | + ls -la arturo + cd arturo + cat version/metadata + arturo -v + arturo tools/tester.art + cd .. + + - if: matrix.mode == 'full' && (matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64') + name: Run tests (Unitt) + run: | + cd arturo + arturo tools/unitt-tester.art + cd .. - - if: matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64' - name: Run tests + - name: Prepare artifact + id: artifact-details run: | - arturo -v \ No newline at end of file + binary_path="arturo/bin/arturo" + + artifact_os="macos" + artifact_arch="${{matrix.arch}}" + artifact_mode="${{matrix.mode}}" + + if [ "${{matrix.os}}" = "windows-latest" ]; then + artifact_os="windows" + binary_path="${binary_path}.exe" + fi + if [ "${{matrix.os}}" = "ubuntu-latest" ]; then + artifact_os="linux" + if [ "${{matrix.mode}}" = "web" ]; then + artifact_os="js" + artifact_arch="web" + artifact_mode="mini" + binary_path="${binary_path}.js" + fi + fi + + cd arturo + git_stamp="nightly.${{ steps.currentDate.outputs.text }}" + cd .. + + artifact_name="arturo-${git_stamp}-${artifact_arch}-${artifact_os}-${artifact_mode}" + + echo "BINARY_PATH=$binary_path" >> "$GITHUB_OUTPUT" + echo "ARTIFACT_NAME=$artifact_name" >> "$GITHUB_OUTPUT" + + - name: Upload artifact + uses: 'actions/upload-artifact@v4' + with: + name: ${{ steps.artifact-details.outputs.ARTIFACT_NAME }} + path: ${{ steps.artifact-details.outputs.BINARY_PATH }} \ No newline at end of file From b2192edd7eb8b0b854309ba7603d611bb34d86e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:01:15 +0200 Subject: [PATCH 04/14] remove windows (debugging) --- .github/workflows/buildnightlies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index c402cd3..b044d18 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -28,8 +28,8 @@ jobs: - {name: "Linux (amd64 / mini)", os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} - {name: "Linux (arm64 / mini)", os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} - - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} - - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} + #- {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} + #- {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} - {name: "macOS (amd64 / full)", os: macOS-12, arch: amd64, mode: full, shell: bash} - {name: "macOS (amd64 / mini)", os: macOS-12, arch: amd64, mode: mini, shell: bash} - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} From deb5922164ddff6f50e4614cc9280be56189220e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:21:06 +0200 Subject: [PATCH 05/14] reinstate Windows builds --- .github/workflows/buildnightlies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index b044d18..c402cd3 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -28,8 +28,8 @@ jobs: - {name: "Linux (amd64 / mini)", os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} - {name: "Linux (arm64 / mini)", os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} - #- {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} - #- {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} + - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} + - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} - {name: "macOS (amd64 / full)", os: macOS-12, arch: amd64, mode: full, shell: bash} - {name: "macOS (amd64 / mini)", os: macOS-12, arch: amd64, mode: mini, shell: bash} - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} From 0bca28d6a6de324044dc0d57fa8ac2ba355b6000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:21:35 +0200 Subject: [PATCH 06/14] switch from `macos-12` to `macos-13` --- .github/workflows/buildnightlies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index c402cd3..618c252 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -30,8 +30,8 @@ jobs: - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} - - {name: "macOS (amd64 / full)", os: macOS-12, arch: amd64, mode: full, shell: bash} - - {name: "macOS (amd64 / mini)", os: macOS-12, arch: amd64, mode: mini, shell: bash} + - {name: "macOS (amd64 / full)", os: macOS-13, arch: amd64, mode: full, shell: bash} + - {name: "macOS (amd64 / mini)", os: macOS-13, arch: amd64, mode: mini, shell: bash} - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} - {name: "macOS (arm64 / mini)", os: macos-latest, arch: arm64, mode: mini, shell: bash} From 2e64f79a25b7d3cf0075124832c64d5d853fab9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:45:21 +0200 Subject: [PATCH 07/14] re-disable Windows builds :facepalm --- .github/workflows/buildnightlies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index 618c252..432c155 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -28,8 +28,8 @@ jobs: - {name: "Linux (amd64 / mini)", os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} - {name: "Linux (arm64 / mini)", os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} - - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} - - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} + #- {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} + #- {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} - {name: "macOS (amd64 / full)", os: macOS-13, arch: amd64, mode: full, shell: bash} - {name: "macOS (amd64 / mini)", os: macOS-13, arch: amd64, mode: mini, shell: bash} - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} From 51c9e38da4831107c312cb66520a4ad8b50508ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:52:44 +0200 Subject: [PATCH 08/14] attempt to force bash on date-extraction step + re-enabled Windows builds --- .github/workflows/buildnightlies.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index 432c155..f9bb260 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -28,8 +28,8 @@ jobs: - {name: "Linux (amd64 / mini)", os: ubuntu-latest, arch: amd64, mode: mini, shell: bash} - {name: "Linux (arm64 / mini)", os: ubuntu-latest, arch: arm64, mode: mini, shell: bash} - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} - #- {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} - #- {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} + - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} + - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} - {name: "macOS (amd64 / full)", os: macOS-13, arch: amd64, mode: full, shell: bash} - {name: "macOS (amd64 / mini)", os: macOS-13, arch: amd64, mode: mini, shell: bash} - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} @@ -42,6 +42,7 @@ jobs: steps: - name: Get current date run: echo $(date -u "+%F") >> currentDate + shell: bash - name: "Read date" uses: pCYSl5EDgo/cat@master From 9e744b3d70c7ae4ae2ae48408bb3fd86d10880d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:00:29 +0200 Subject: [PATCH 09/14] minor edit --- .github/workflows/buildnightlies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index f9bb260..7c91347 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -30,8 +30,8 @@ jobs: - {name: "JS (web / mini)", os: ubuntu-latest, arch: amd64, mode: web, shell: bash} - {name: "Windows (amd64 / full)", os: windows-latest, arch: amd64, mode: full, shell: "msys2 {0}"} - {name: "Windows (amd64 / mini)", os: windows-latest, arch: amd64, mode: mini, shell: "msys2 {0}"} - - {name: "macOS (amd64 / full)", os: macOS-13, arch: amd64, mode: full, shell: bash} - - {name: "macOS (amd64 / mini)", os: macOS-13, arch: amd64, mode: mini, shell: bash} + - {name: "macOS (amd64 / full)", os: macos-13, arch: amd64, mode: full, shell: bash} + - {name: "macOS (amd64 / mini)", os: macos-13, arch: amd64, mode: mini, shell: bash} - {name: "macOS (arm64 / full)", os: macos-latest, arch: arm64, mode: full, shell: bash} - {name: "macOS (arm64 / mini)", os: macos-latest, arch: arm64, mode: mini, shell: bash} From 40a479b9672152359f0194d7c6f13f3268054d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:03:34 +0200 Subject: [PATCH 10/14] attempt to make it a tiny bit better + not run the same things over and over again for pushes and PRs --- .github/workflows/buildnightlies.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index 7c91347..199f0d3 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -3,12 +3,16 @@ name: Build Nightlies on: push: branches: + - 'master' + - 'actions' + tags-ignore: - '**' - - actions - pull_request: - branches: - - '*' + paths-ignore: + - 'docs/*' + - '*.yml' + - '*.md' + - 'LICENSE' schedule: - cron: '0 0 * * *' From 586eac9a69c221808a0b2fe65883e4703f3c0621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:12:01 +0200 Subject: [PATCH 11/14] added `workflow_dispatch` trigger + start Release job --- .github/workflows/buildnightlies.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index 199f0d3..44a9eac 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -17,12 +17,14 @@ on: schedule: - cron: '0 0 * * *' + workflow_dispatch: + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: - test: + build: runs-on: ${{ matrix.os }} strategy: matrix: @@ -116,4 +118,11 @@ jobs: uses: 'actions/upload-artifact@v4' with: name: ${{ steps.artifact-details.outputs.ARTIFACT_NAME }} - path: ${{ steps.artifact-details.outputs.BINARY_PATH }} \ No newline at end of file + path: ${{ steps.artifact-details.outputs.BINARY_PATH }} + + release: + name: "Release" + runs-on: ubuntu-latest + if: (github.event_name == 'schedule' ) || (github.event_name == 'workflow_dispatch') + needs: + - build \ No newline at end of file From e9b477a51691d2bc17f5340b812881309e9048c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:14:10 +0200 Subject: [PATCH 12/14] added date-extraction step --- .github/workflows/buildnightlies.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index 44a9eac..c00d22f 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -125,4 +125,15 @@ jobs: runs-on: ubuntu-latest if: (github.event_name == 'schedule' ) || (github.event_name == 'workflow_dispatch') needs: - - build \ No newline at end of file + - build + steps: + - name: Get current date + run: echo $(date -u "+%F") >> currentDate + shell: bash + + - name: "Read date" + uses: pCYSl5EDgo/cat@master + id: currentDate + with: + path: currentDate + trim: true \ No newline at end of file From 0918941437dd5ff60624348b68a0b1c880c7be47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:14:44 +0200 Subject: [PATCH 13/14] removed unit-tests (that's not what the Nightlies are for!) --- .github/workflows/buildnightlies.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index c00d22f..c6262cf 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -64,23 +64,6 @@ jobs: mode: ${{ matrix.mode }} arch: ${{ matrix.arch }} metadata: nightly.${{ steps.currentDate.outputs.text }} - - - if: (matrix.mode != 'safe' && matrix.mode != 'web') && (matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64') - name: Run tests (Old) - run: | - ls -la arturo - cd arturo - cat version/metadata - arturo -v - arturo tools/tester.art - cd .. - - - if: matrix.mode == 'full' && (matrix.os != 'ubuntu-latest' || matrix.arch != 'arm64') - name: Run tests (Unitt) - run: | - cd arturo - arturo tools/unitt-tester.art - cd .. - name: Prepare artifact id: artifact-details From e8a06f965308a56a0434191d6dda469e6b432ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:21:18 +0200 Subject: [PATCH 14/14] implement releases --- .github/workflows/buildnightlies.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildnightlies.yml b/.github/workflows/buildnightlies.yml index c6262cf..6f10315 100644 --- a/.github/workflows/buildnightlies.yml +++ b/.github/workflows/buildnightlies.yml @@ -119,4 +119,16 @@ jobs: id: currentDate with: path: currentDate - trim: true \ No newline at end of file + trim: true + + - name: Download existing artifacts + uses: actions/download-artifact@v2 + with: + path: ./assets + + - name: Upload release assets + run: | + gh release create ${{ steps.currentDate.outputs.text }} "" ./assets/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash