diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-20 20:22:24 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-02-20 20:22:24 -0600 |
| commit | 33cb47f91515d7d7df0a8ad687e4877628368f85 (patch) | |
| tree | 50fee5cc52d25ddf6ef42d4eec5b374b565c0680 | |
| parent | e437ae592a514199302b79deeac31a35cdb86de5 (diff) | |
| download | slskd-33cb47f91515d7d7df0a8ad687e4877628368f85.tar.gz | |
isolate docker
| -rw-r--r-- | .github/workflows/ci.yml | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96186d0b..c6a71b0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,65 +8,65 @@ on: workflow_dispatch: jobs: - build: - name: Build and Test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Set Environment Variables - run: | - echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - echo "REVISION=$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)" >> $GITHUB_ENV - echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV - - name: Web - run: ./bin/build --web-only - - name: Dotnet - run: ./bin/build --dotnet-only --version ${{ env.VERSION }} - - name: Upload Static Web Content - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') - uses: actions/upload-artifact@v2 - with: - name: web-${{ env.VERSION }} - path: src/web/build - publish: - name: Build Platform-Specific Binaries - runs-on: ubuntu-latest - needs: build - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') - strategy: - matrix: - runtime: ["win-x64", "linux-x64", "linux-musl-x64", "linux-arm", "linux-arm64", "osx-x64"] - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Set Environment Variables - run: | - echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - echo "REVISION=$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)" >> $GITHUB_ENV - echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV - - name: Download Static Web Content - uses: actions/download-artifact@v2 - with: - name: web-${{ env.VERSION }} - path: src/slskd/wwwroot - - name: Build ${{ matrix.runtime }} - run: bin/publish --no-prebuild --runtime ${{ matrix.runtime }} --version ${{ env.VERSION }} - - name: Upload Binaries - uses: actions/upload-artifact@v2 - with: - name: slskd-${{ env.VERSION }}-${{ matrix.runtime }} - path: dist/${{ matrix.runtime }} + # build: + # name: Build and Test + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v2 + # with: + # fetch-depth: 0 + # - name: Set Environment Variables + # run: | + # echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + # echo "REVISION=$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)" >> $GITHUB_ENV + # echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + # echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV + # - name: Web + # run: ./bin/build --web-only + # - name: Dotnet + # run: ./bin/build --dotnet-only --version ${{ env.VERSION }} + # - name: Upload Static Web Content + # if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + # uses: actions/upload-artifact@v2 + # with: + # name: web-${{ env.VERSION }} + # path: src/web/build + # publish: + # name: Build Platform-Specific Binaries + # runs-on: ubuntu-latest + # needs: build + # if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + # strategy: + # matrix: + # runtime: ["win-x64", "linux-x64", "linux-musl-x64", "linux-arm", "linux-arm64", "osx-x64"] + # steps: + # - name: Checkout + # uses: actions/checkout@v2 + # with: + # fetch-depth: 0 + # - name: Set Environment Variables + # run: | + # echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + # echo "REVISION=$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)" >> $GITHUB_ENV + # echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + # echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV + # - name: Download Static Web Content + # uses: actions/download-artifact@v2 + # with: + # name: web-${{ env.VERSION }} + # path: src/slskd/wwwroot + # - name: Build ${{ matrix.runtime }} + # run: bin/publish --no-prebuild --runtime ${{ matrix.runtime }} --version ${{ env.VERSION }} + # - name: Upload Binaries + # uses: actions/upload-artifact@v2 + # with: + # name: slskd-${{ env.VERSION }}-${{ matrix.runtime }} + # path: dist/${{ matrix.runtime }} docker: name: Build Docker Image runs-on: ubuntu-latest - needs: build + #needs: build if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') steps: - name: Checkout |
