diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d50d47..59478fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,29 @@ defaults: shell: bash jobs: + os: + runs-on: ubuntu-latest + outputs: + os: ${{ steps.os.outputs.os }} + steps: + - name: 🤘 checkout + uses: actions/checkout@v2 + + - name: 🔎 os + id: os + shell: pwsh + run: | + $path = './.github/workflows/os-matrix.json' + $os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' } + echo "::set-output name=os::$os" + build: - runs-on: windows-latest + needs: os + name: build-${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ${{ fromJSON(needs.os.outputs.os) }} steps: - name: 🤘 checkout uses: actions/checkout@v2 diff --git a/.github/workflows/os-matrix.json b/.github/workflows/os-matrix.json new file mode 100644 index 0000000..aa561ef --- /dev/null +++ b/.github/workflows/os-matrix.json @@ -0,0 +1 @@ +["windows-latest"] \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5d87ff8..5eee1f3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,6 @@ pack *.cache .vs .* +!.github log.txt *.binlog