diff options
author | LKedward <laurence.kedward@bristol.ac.uk> | 2020-11-18 15:09:38 +0000 |
---|---|---|
committer | LKedward <laurence.kedward@bristol.ac.uk> | 2020-11-18 15:34:52 +0000 |
commit | cf0576774bb504bac4b0648bb05fbcb2b90d11a0 (patch) | |
tree | dbae4bb302e099aaff51bef4d02dbc45885b76c3 /.github/workflows | |
parent | b6e9aef0b482a0e0a2cb557a9415cd7d0e119d1e (diff) | |
download | fpm-cf0576774bb504bac4b0648bb05fbcb2b90d11a0.tar.gz fpm-cf0576774bb504bac4b0648bb05fbcb2b90d11a0.zip |
Fix: binary_release ci
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release_binaries.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/release_binaries.yml b/.github/workflows/release_binaries.yml index d855c39..e7a54b6 100644 --- a/.github/workflows/release_binaries.yml +++ b/.github/workflows/release_binaries.yml @@ -6,7 +6,6 @@ jobs: Build: runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] gcc_v: [9] # Version of GFortran we want to use. @@ -101,22 +100,28 @@ jobs: - name: Check that fpm --version matches release tag if: contains(matrix.os, 'ubuntu') - run: fpm run -- "--version" | grep $(git ls-remote --tags ./ | cut -d/ -f3) + run: | + cd fpm + fpm run -- "--version" | grep $(echo ${{ github.ref }} | cut -d/ -f3) - name: Stage file for upload (Linux / macOS) if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') - run: fpm run --runner cp -- fpm-${{ matrix.os }}-x86_64-debug + run: | + cd fpm + fpm run --runner cp -- fpm-${{ matrix.os }}-x86_64-debug - name: Stage file for upload (Windows) - if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') + if: contains(matrix.os, 'windows') shell: cmd - run: fpm run --runner copy -- fpm-${{ matrix.os }}-x86_64-debug + run: | + cd fpm + fpm run --runner copy -- fpm-${{ matrix.os }}-x86_64-debug - name: Upload dev trunk binary release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: fpm-${{ matrix.os }}-x86_64-debug + file: fpm/fpm-${{ matrix.os }}-x86_64-debug asset_name: fpm-${{ matrix.os }}-x86_64-debug tag: ${{ github.ref }} overwrite: true |