From 5b70449aeec881b7be0ef515d0c749676ade5a43 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 7 Oct 2022 01:13:24 +0800 Subject: [PATCH 1/7] Added linux nightly build --- .github/workflows/c-cpp.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 56af7e9..5c7a015 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -10,10 +10,8 @@ on: workflow_dispatch: jobs: - build: - + mac-build: runs-on: macos-latest - steps: - uses: actions/checkout@v2 - name: make @@ -31,9 +29,34 @@ jobs: # GitHub auth token repo_token: ${{ secrets.GITHUB_TOKEN }} # Name of Release to add file to - title: macOS Nightly build + title: Nightly builds # Name of the tag for the release (will be associated with current branch) automatic_release_tag: next # File to release files: nasal-mac-nightly.tgz - + + linux-x86_64-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: make + run: | + make + cd module + make all + cd .. + tar -czf nasal-mac-nightly.tgz . + - name: Release file + # You may pin to the exact commit or the version. + # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 + uses: marvinpinto/action-automatic-releases@v1.2.1 + with: + # GitHub auth token + repo_token: ${{ secrets.GITHUB_TOKEN }} + # Name of Release to add file to + title: Nightly build + # Name of the tag for the release (will be associated with current branch) + automatic_release_tag: next + # File to release + files: nasal-linux-x86_64-nightly.tgz + From 568d8211863c0871f8ed5ab963e48292ecc7b72d Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 7 Oct 2022 01:14:06 +0800 Subject: [PATCH 2/7] fix file name --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 5c7a015..58ba72f 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -45,7 +45,7 @@ jobs: cd module make all cd .. - tar -czf nasal-mac-nightly.tgz . + tar -czf nasal-linux-x86_64-nightly.tgz . - name: Release file # You may pin to the exact commit or the version. # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 From 8b1eebb310bd36c4c4d4591f95d48c7ca9361ff1 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 7 Oct 2022 01:20:14 +0800 Subject: [PATCH 3/7] Fix tar failing on linux --- .github/workflows/c-cpp.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 58ba72f..fe16fee 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -45,7 +45,8 @@ jobs: cd module make all cd .. - tar -czf nasal-linux-x86_64-nightly.tgz . + touch nasal-linux-x86_64-nightly.tgz + tar -czf nasal-linux-x86_64-nightly.tgz . --exclude=nasal-linux-x86_64-nightly.tgz - name: Release file # You may pin to the exact commit or the version. # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 From 8ae5cc0071c2da5831c23061b840274395c57b19 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 7 Oct 2022 01:21:40 +0800 Subject: [PATCH 4/7] fix tar failing on linux (again) --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index fe16fee..915f24a 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -46,7 +46,7 @@ jobs: make all cd .. touch nasal-linux-x86_64-nightly.tgz - tar -czf nasal-linux-x86_64-nightly.tgz . --exclude=nasal-linux-x86_64-nightly.tgz + tar -czf --exclude=nasal-linux-x86_64-nightly.tgz nasal-linux-x86_64-nightly.tgz . - name: Release file # You may pin to the exact commit or the version. # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 From b0c5dfada7e2896f18509121fbf7bf81145f5118 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 7 Oct 2022 01:23:15 +0800 Subject: [PATCH 5/7] I'm stupid --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 915f24a..580a51d 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -46,7 +46,7 @@ jobs: make all cd .. touch nasal-linux-x86_64-nightly.tgz - tar -czf --exclude=nasal-linux-x86_64-nightly.tgz nasal-linux-x86_64-nightly.tgz . + tar -czf nasal-linux-x86_64-nightly.tgz --exclude=nasal-linux-x86_64-nightly.tgz . - name: Release file # You may pin to the exact commit or the version. # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 From 74b925715f1d98283c889976f829491d0942457f Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Fri, 7 Oct 2022 01:30:17 +0800 Subject: [PATCH 6/7] Unable to place two builds under one releases, thus dividing them --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 580a51d..91407fb 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -29,7 +29,7 @@ jobs: # GitHub auth token repo_token: ${{ secrets.GITHUB_TOKEN }} # Name of Release to add file to - title: Nightly builds + title: macOS Nightly build # Name of the tag for the release (will be associated with current branch) automatic_release_tag: next # File to release @@ -55,7 +55,7 @@ jobs: # GitHub auth token repo_token: ${{ secrets.GITHUB_TOKEN }} # Name of Release to add file to - title: Nightly build + title: Linux Nightly build # Name of the tag for the release (will be associated with current branch) automatic_release_tag: next # File to release From 8aec98a2b34d80b2cc05fdbbc3b4af7a0e5d7a2f Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 24 Oct 2022 01:32:05 +0800 Subject: [PATCH 7/7] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 91407fb..3aaabf5 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -31,7 +31,7 @@ jobs: # Name of Release to add file to title: macOS Nightly build # Name of the tag for the release (will be associated with current branch) - automatic_release_tag: next + automatic_release_tag: next_macOS # File to release files: nasal-mac-nightly.tgz @@ -57,7 +57,7 @@ jobs: # Name of Release to add file to title: Linux Nightly build # Name of the tag for the release (will be associated with current branch) - automatic_release_tag: next + automatic_release_tag: next_linux_x86_64 # File to release files: nasal-linux-x86_64-nightly.tgz