From afd87da5e7fae5e88a939eeaec96a95a7fecec12 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 6 Dec 2021 22:36:08 +0800 Subject: [PATCH 1/4] Try out GitHub Actions --- .github/workflows/c-cpp.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..8bd97b9 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,18 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: make + run: make From 19d5952210af8257dd9d73f6bb4196c1e8a99797 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 6 Dec 2021 22:47:37 +0800 Subject: [PATCH 2/4] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 8bd97b9..7c4e7c2 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -16,3 +16,5 @@ jobs: - uses: actions/checkout@v2 - name: make run: make + - name: Download a Build Artifact + uses: actions/download-artifact@v2.0.10 From df5be35af87444a2ce020685cb74725a9470eef2 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 6 Dec 2021 22:55:18 +0800 Subject: [PATCH 3/4] Attempt to make nightly builds for macOS --- .github/workflows/c-cpp.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 7c4e7c2..eb065f6 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -1,6 +1,8 @@ name: C/C++ CI on: + schedule: + - cron: "0 16 * * *" push: branches: [ master ] pull_request: @@ -16,5 +18,19 @@ jobs: - uses: actions/checkout@v2 - name: make run: make - - name: Download a Build Artifact - uses: actions/download-artifact@v2.0.10 + - name: Release file + # You may pin to the exact commit or the version. + # uses: djnicholson/release-action@e9a535b3eced09c460e07a84118fb74ae9b53236 + uses: djnicholson/release-action@v2.10 + with: + # GitHub auth token + token: ${{ secrets.GITHUB_TOKEN }} + # Name of Release to add file to + release-name: nightly build + # Name of the tag for the release (will be associated with current branch) + tag-name: next + # Name for the asset + asset-name: macOS_next + # File to release + file: nasal + From ead49a657ec8f42e86a311b33c15772d021c03e7 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 6 Dec 2021 23:00:25 +0800 Subject: [PATCH 4/4] Change the asset name to 'nasal' --- .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 eb065f6..77e51b2 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -30,7 +30,7 @@ jobs: # Name of the tag for the release (will be associated with current branch) tag-name: next # Name for the asset - asset-name: macOS_next + asset-name: nasal # File to release file: nasal