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 | |
| parent | b53ed8d5c433ba659f50e05d34dfed9582d2613e (diff) | |
| parent | 68f710eac98c259c5d7c76bad59348be3d7db28e (diff) | |
Merge branch 'master' of github.com:DanielGavin/ols
| -rw-r--r-- | .github/workflows/nigthly.yml | 67 | ||||
| -rw-r--r-- | LICENSE | 21 | ||||
| -rw-r--r-- | README.md | 2 |
3 files changed, 88 insertions, 2 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 }} @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Daniel Gavin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. @@ -1,8 +1,6 @@ # ols Language server for Odin. This project is still in early development. -NOTE(Linux and MacOS are not supported until the compiler catches up on those platforms) -  ## Table Of Contents |