Skip to content

Optimize away dead branches when the IF condition is a constant #113

Optimize away dead branches when the IF condition is a constant

Optimize away dead branches when the IF condition is a constant #113

Workflow file for this run

name: Binaries
on: [push, pull_request]
jobs:
compile-binaries:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
# - windows-latest
# - macOS-latest
nim-version:
- 2.0.x
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v3
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ matrix.nim-version}}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v3
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ matrix.nim-version}}-${{ hashFiles('neverwinter.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-${{ matrix.nim-version}}-
- name: Setup nim
uses: jiro4989/setup-nim-action@f6b28cfdfcbc9c2364429bd585ad5f850ea64498
with:
nim-version: ${{ matrix.nim-version }}
- name: Install Packages
run: nimble install -y --depsOnly
- name: Setup nimble search path
run: nimble setup
- name: Build
run: nimble build -d:release