From a39eeb04bd4c31140f96eb4d2acef22a964517d6 Mon Sep 17 00:00:00 2001 From: Joseph Yu Date: Mon, 27 Apr 2020 12:39:34 +0100 Subject: [PATCH] Initial multi-platform install CI Awaiting https://github.com/nerdvegas/rez/pull/878 --- .github/workflows/installation.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/installation.yml b/.github/workflows/installation.yml index 83d10161c..a7e9571cf 100644 --- a/.github/workflows/installation.yml +++ b/.github/workflows/installation.yml @@ -2,9 +2,38 @@ name: Installation on: [push] jobs: + os-vm: + name: ${{ matrix.python-version }} - ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest + strategy: + matrix: + python-version: + - '2.7' + # - '3.6' + # - '3.7' + os: + - windows + - macos + include: + - os: windows + method: 'python .\install.py "C:\Program Files\rez"' + check-parent: 'dir "C:\Program Files"' + - os: macos + method: 'sudo python ./install.py /Applications/Utilities/rez' + check-parent: 'ls -lah /Applications/Utilities' + + steps: + - uses: actions/checkout@master + - uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - run: ${{ matrix.check-parent }} + - run: ${{ matrix.method }} + linux-vm: name: ${{ matrix.python-version }} - ${{ matrix.method }} runs-on: ubuntu-latest + needs: os-vm # Disable while we test above strategy: matrix: python-version: