-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update from cryptogarageinc/cfd-rust v0.2.3 (#3)
- Loading branch information
1 parent
1e4a444
commit 79a0f84
Showing
13 changed files
with
1,358 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,12 @@ on: | |
tags: | ||
- 'v*' | ||
|
||
env: | ||
CMAKE_VERSION: 3.17.2 | ||
|
||
jobs: | ||
create-releases: | ||
create_releases: | ||
name: create-releases | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release_url: ${{ steps.output_url.outputs.upload_url }} | ||
|
||
steps: | ||
- name: checkout | ||
|
@@ -30,23 +29,24 @@ jobs: | |
- Second Change | ||
draft: false | ||
prerelease: true | ||
# continue-on-error: true | ||
- name: write upload url | ||
continue-on-error: true | ||
- name: Get release | ||
if: steps.create_release.outcome == 'failure' | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
url: ${{ steps.create_release.outputs.upload_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: output url | ||
id: output_url | ||
run: | | ||
echo $url > upload_url.txt | ||
- name: upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: artifact-upload_url | ||
path: upload_url.txt | ||
echo "::set-output name=upload_url::${{steps.get_release.outputs.upload_url}}${{steps.create_release.outputs.upload_url}}" | ||
upload-object-windows-vs2019: | ||
name: upload-object-win-vs2019 | ||
needs: create-releases | ||
needs: create_releases | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
bin: [vs2019, vs2019-static] | ||
include: | ||
|
@@ -58,17 +58,9 @@ jobs: | |
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: artifact-upload_url | ||
- name: dump upload url | ||
- name: output url | ||
id: get_url | ||
run: | | ||
export up_url="$(cat artifact-upload_url/upload_url.txt)" | ||
echo "::set-output name=upload_url::$up_url" | ||
echo "url=$up_url" | ||
shell: bash | ||
run: echo "::set-output name=upload_url::${{ needs.create_releases.outputs.release_url }}" | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
@@ -123,9 +115,10 @@ jobs: | |
|
||
upload-object-ubuntu: | ||
name: upload-object-ubuntu | ||
needs: create-releases | ||
needs: create_releases | ||
runs-on: ubuntu-${{ matrix.os_ver }}.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# os: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04] | ||
os_ver: [20, 18, 16] | ||
|
@@ -161,15 +154,9 @@ jobs: | |
zip -r cfd.zip usr | ||
echo "---- dump zip file ----" | ||
ls -l | ||
- name: download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: artifact-upload_url | ||
- name: dump upload url | ||
- name: output url | ||
id: get_url | ||
run: | | ||
url=$(cat artifact-upload_url/upload_url.txt) | ||
echo ::set-output name=upload_url::$url | ||
run: echo "::set-output name=upload_url::${{ needs.create_releases.outputs.release_url }}" | ||
- name: Upload Release Asset Ubuntu | ||
uses: actions/[email protected] | ||
env: | ||
|
@@ -182,7 +169,7 @@ jobs: | |
|
||
upload-object-alpine: | ||
name: upload-object-alpine | ||
needs: create-releases | ||
needs: create_releases | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -212,15 +199,9 @@ jobs: | |
sudo cp -rp /tmp/cfd/cfd.zip $GITHUB_WORKSPACE/dist/cfd.zip | ||
echo "---- dump zip file ----" | ||
sudo ls -l /tmp/cfd | ||
- name: download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: artifact-upload_url | ||
- name: dump upload url | ||
- name: output url | ||
id: get_url | ||
run: | | ||
url=$(cat artifact-upload_url/upload_url.txt) | ||
echo ::set-output name=upload_url::$url | ||
run: echo "::set-output name=upload_url::${{ needs.create_releases.outputs.release_url }}" | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
# if: success() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.