Skip to content

feat: github actions for building #5

feat: github actions for building

feat: github actions for building #5

Workflow file for this run

name: main
on:
pull_request:
jobs:
typos-check:
name: Typos Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@cfe759ac8dd421e203cc293a373396fbc6fe0d4b # v1.22.7
build-script-windows:
name: 'build.cmd'
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- run: .\build.cmd
- uses: actions/upload-artifact@v4
with:
name: cpp2b.exe
path: dist/debug/cpp2b.exe
if-no-files-found: error
retention-days: 0
build-self-windows:
name: 'build self (windows)'
needs: build-script-windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: 'cpp2b.exe'
- run: .\cpp2b.exe build
- run: .\cache\cpp2\bin\cpp2b.exe build