From a6235b027218c48069da1548927e304d25035c34 Mon Sep 17 00:00:00 2001 From: lzwdgc Date: Thu, 10 Sep 2020 13:34:34 +0300 Subject: [PATCH] [ci] Add github actions. --- .github/workflows/sw.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/sw.yml diff --git a/.github/workflows/sw.yml b/.github/workflows/sw.yml new file mode 100644 index 0000000..66ba73f --- /dev/null +++ b/.github/workflows/sw.yml @@ -0,0 +1,23 @@ +name: sw + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [windows-latest] + + steps: + - uses: actions/checkout@v1 + - uses: egorpugin/sw-action@master + + - name: build + if: matrix.os == 'windows-latest' + run: ./sw -static -shared -platform x86,x64 -config d,r build + + - name: build + if: matrix.os != 'windows-latest' + run: ./sw -static -shared -config d,r build