From 942efa71c6bf3f957a3e0aa34934e56ef20dc617 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 2 Apr 2021 12:57:06 +0200 Subject: [PATCH] :wrench: test nightly --- .github/workflows/nightly.yml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000..2d76cede --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,43 @@ +name: Cffi Nightly + +on: + push: + branches: + - 'main' + +jobs: + nightly: + name: Deploy nightly + strategy: + fail-fast: false + matrix: +# os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: SubModules + run: git submodule update --init --recursive util ast libcmdapp + + - name: Build + run: make + env: + USE_LTO: 1 + + - name: build asset + run: | + 7z a gwion-nightly.zip gwion + + - name: Deploy release + uses: WebFreak001/deploy-nightly@v1.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: https://uploads.github.com/repos/Gwion/Gwion/releases/40867029/assets{?name,label} + release_id: 40867029 # same as above (id can just be taken out the upload_url, it's used to find old releases) + asset_path: ./gwion-nightly.zip # path to archive to upload + asset_name: gwion-nightly-${{matrix.os}}-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash + asset_content_type: application/zip # required by GitHub API + max_releases: 7 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted -- 2.43.0