From 986c181d68447ac2463b6945e4ed68fe39f800e5 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Fri, 13 Mar 2020 16:33:15 +0300 Subject: [ci] Merge github actions into single file. --- .github/workflows/linux.yml | 35 ----------------------------------- .github/workflows/mac.yml | 35 ----------------------------------- .github/workflows/sw.yml | 39 +++++++++++++++++++++++++++++++++++++++ .github/workflows/windows.yml | 35 ----------------------------------- 4 files changed, 39 insertions(+), 105 deletions(-) delete mode 100644 .github/workflows/linux.yml delete mode 100644 .github/workflows/mac.yml create mode 100644 .github/workflows/sw.yml delete mode 100644 .github/workflows/windows.yml (limited to '.github') diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index b0ef994..0000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: linux - -on: [push] - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - - steps: - - uses: actions/checkout@v1 - #- uses: egorpugin/sw-action@master - - - name: Download SW - shell: cmake -P {0} - run: | - if (WIN32) - file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip) - elseif (APPLE) - file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip) - else() - file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip) - endif() - - - name: Unpack SW - run: cmake -E tar xvf sw.zip - - - name: chmod - run: chmod 755 sw - shell: sh - - - name: build - run: ./sw build diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml deleted file mode 100644 index 4d75508..0000000 --- a/.github/workflows/mac.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: mac - -on: [push] - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macOS-latest] - - steps: - - uses: actions/checkout@v1 - #- uses: egorpugin/sw-action@master - - - name: Download SW - shell: cmake -P {0} - run: | - if (WIN32) - file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip) - elseif (APPLE) - file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip) - else() - file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip) - endif() - - - name: Unpack SW - run: cmake -E tar xvf sw.zip - - - name: chmod - run: chmod 755 sw - shell: sh - - - name: build - run: ./sw build diff --git a/.github/workflows/sw.yml b/.github/workflows/sw.yml new file mode 100644 index 0000000..a58f77c --- /dev/null +++ b/.github/workflows/sw.yml @@ -0,0 +1,39 @@ +name: sw + +on: [push, pull-request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [windows-latest, ubuntu-latest, macOS-latest] + + steps: + - uses: actions/checkout@v1 + #- uses: egorpugin/sw-action@master + + - name: Download SW + shell: cmake -P {0} + run: | + if (WIN32) + file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip) + elseif (APPLE) + file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip) + else() + file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip) + endif() + + - name: Unpack SW + run: cmake -E tar xvf sw.zip + + - name: chmod + run: chmod 755 sw + shell: sh + + - name: build + run: ./sw build + + - name: test + run: ./sw test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index 1f8c89f..0000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: windows - -on: [push] - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest] - - steps: - - uses: actions/checkout@v1 - #- uses: egorpugin/sw-action@master - - - name: Download SW - shell: cmake -P {0} - run: | - if (WIN32) - file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip) - elseif (APPLE) - file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip) - else() - file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip) - endif() - - - name: Unpack SW - run: cmake -E tar xvf sw.zip - - - name: chmod - run: chmod 755 sw - shell: sh - - - name: build - run: ./sw build -- cgit v1.2.3