-
Notifications
You must be signed in to change notification settings - Fork 989
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Azure Pipelines and add Github Actions (#3765)
* Remove Azure Pipelines and add Github Actions * Trigger CI on push and pull request
- Loading branch information
1 parent
c48ba3e
commit a9f45de
Showing
7 changed files
with
106 additions
and
241 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Continuous Deployment | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
linux-release: | ||
name: Linux Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: cargo build --release | ||
- name: Archive | ||
working-directory: target/release | ||
run: tar -czvf grin-${{ github.ref_name }}-linux-x86_64.tar.gz grin | ||
- name: Create Checksum | ||
working-directory: target/release | ||
run: openssl sha256 grin-${{ github.ref_name }}-linux-x86_64.tar.gz > grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
files: | | ||
target/release/grin-${{ github.ref_name }}-linux-x86_64.tar.gz | ||
target/release/grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt | ||
macos-release: | ||
name: macOS Release | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build | ||
run: cargo build --release | ||
- name: Archive | ||
working-directory: target/release | ||
run: tar -czvf grin-${{ github.ref_name }}-macos-x86_64.tar.gz grin | ||
- name: Create Checksum | ||
working-directory: target/release | ||
run: openssl sha256 grin-${{ github.ref_name }}-macos-x86_64.tar.gz > grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
target/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz | ||
target/release/grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt | ||
windows-release: | ||
name: Windows Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build | ||
run: cargo build --release | ||
- name: Archive | ||
uses: vimtor/action-zip@v1 | ||
with: | ||
files: target/release/grin.exe | ||
dest: target/release/grin-${{ github.ref_name }}-win-x86_64.zip | ||
- name: Create Checksum | ||
working-directory: target/release | ||
shell: pwsh | ||
run: get-filehash -algorithm sha256 grin-${{ github.ref_name }}-win-x86_64.zip | Format-List | Out-String | ForEach-Object { $_.Trim() } > grin-${{ github.ref_name }}-win-x86_64-sha256sum.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
target/release/grin-${{ github.ref_name }}-win-x86_64.zip | ||
target/release/grin-${{ github.ref_name }}-win-x86_64-sha256sum.txt |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Continuous Integration | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
linux-tests: | ||
name: Linux Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
job_args: [servers, chain, core, keychain, pool, p2p, src, api, util, store] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Test ${{ matrix.job_args }} | ||
working-directory: ${{ matrix.job_args }} | ||
run: cargo test --release | ||
|
||
macos-tests: | ||
name: macOS Tests | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Tests | ||
run: cargo test --release --all | ||
|
||
windows-tests: | ||
name: Windows Tests | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Tests | ||
run: cargo test --release --all |
This file was deleted.
Oops, something went wrong.