aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2021-05-03 12:32:49 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2021-05-03 12:32:49 +0200
commit06f151bed27dee9051a453345c9b706cd8a6ed4c (patch)
tree08eefed217f86e4d5ad1f83d1f9e2b68ab8d9ead /.github
parentb53ed8d5c433ba659f50e05d34dfed9582d2613e (diff)
parent68f710eac98c259c5d7c76bad59348be3d7db28e (diff)
Merge branch 'master' of github.com:DanielGavin/ols
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nigthly.yml67
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 }}