diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-05-03 12:32:49 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-05-03 12:32:49 +0200 |
| commit | 06f151bed27dee9051a453345c9b706cd8a6ed4c (patch) | |
| tree | 08eefed217f86e4d5ad1f83d1f9e2b68ab8d9ead /.github | |
| parent | b53ed8d5c433ba659f50e05d34dfed9582d2613e (diff) | |
| parent | 68f710eac98c259c5d7c76bad59348be3d7db28e (diff) | |
Merge branch 'master' of github.com:DanielGavin/ols
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nigthly.yml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/.github/workflows/nigthly.yml b/.github/workflows/nigthly.yml new file mode 100644 index 0000000..683c226 --- /dev/null +++ b/.github/workflows/nigthly.yml @@ -0,0 +1,67 @@ +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: Move to Dist + shell: cmd + run: | + mkdir dist + copy ols.exe dist + - 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-msvc + path: dist + - run: ls -al ./dist + + - name: Publish Release + uses: ./.github/actions/github-release + with: + files: "dist/*" + name: ${{ env.TAG }} + token: ${{ secrets.GITHUB_TOKEN }} |