diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2021-05-03 12:02:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-03 12:02:45 +0200 |
| commit | 8f3ce9124e89b147173af48da459ec24364a006a (patch) | |
| tree | 4fe90dd86ce95a8a02e9e026bead67ff860d04f5 /.github | |
| parent | aa737361046aa0c585917ddec27296a0ca841a26 (diff) | |
Create nigthly.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nigthly.yml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/.github/workflows/nigthly.yml b/.github/workflows/nigthly.yml new file mode 100644 index 0000000..4890ad0 --- /dev/null +++ b/.github/workflows/nigthly.yml @@ -0,0 +1,62 @@ +name: nightly + + +on: + workflow_dispatch: + schedule: + - cron: 0 20 * * * +jobs: + dist-x86_64-pc-windows-msvc: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - name: Download Odin + shell: cmd + run: git clone https://github.com/odin-lang/Odin + - name: Download and unpack LLVM bins + shell: powershell + run: | + cd Odin + cd bin + $ProgressPreference = "SilentlyContinue"; + Invoke-WebRequest -Uri https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip -OutFile llvm-binaries.zip + 7z x llvm-binaries.zip > $null + - name: Build Odin + shell: cmd + run: | + call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat + cd Odin + ./build.bat 1 + - name: Build ols + shell: cmd + run: ./build.bat CI + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: dist-x86_64-pc-windows-msvc + path: ./dist + publish: + name: publish + runs-on: ubuntu-16.04 + needs: ['dist-x86_64-pc-windows-msvc'] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: ${{ env.FETCH_DEPTH }} + + - run: echo "HEAD_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV + - run: 'echo "HEAD_SHA: $HEAD_SHA"' + + - uses: actions/download-artifact@v1 + with: + name: dist-x86_64-pc-windows-msv + path: dist + - run: ls -al ./dist + + - name: Publish Release + uses: ./.github/actions/github-release + with: + files: "dist/*" + name: ${{ env.TAG }} + token: ${{ secrets.GITHUB_TOKEN }} |