Skip to content

Commit

Permalink
rebase 5.3.X [PATCH 134/142] Replace Azure Pipelines with Github Acti…
Browse files Browse the repository at this point in the history
…ons (mimblewimble#688)

Note: in MWC Azure pipelines are not deleted. We will have both.
  • Loading branch information
bayk committed Aug 14, 2024
1 parent 1684bc8 commit b46fc92
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/cd.yaml
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-wallet-${{ github.ref_name }}-linux-x86_64.tar.gz grin-wallet
- name: Create Checksum
working-directory: target/release
run: openssl sha256 grin-wallet-${{ github.ref_name }}-linux-x86_64.tar.gz > grin-wallet-${{ 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-wallet-${{ github.ref_name }}-linux-x86_64.tar.gz
target/release/grin-wallet-${{ 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-wallet-${{ github.ref_name }}-macos-x86_64.tar.gz grin-wallet
- name: Create Checksum
working-directory: target/release
run: openssl sha256 grin-wallet-${{ github.ref_name }}-macos-x86_64.tar.gz > grin-wallet-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/grin-wallet-${{ github.ref_name }}-macos-x86_64.tar.gz
target/release/grin-wallet-${{ 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-wallet.exe
dest: target/release/grin-wallet-${{ github.ref_name }}-win-x86_64.zip
- name: Create Checksum
working-directory: target/release
shell: pwsh
run: get-filehash -algorithm sha256 grin-wallet-${{ github.ref_name }}-win-x86_64.zip | Format-List |  Out-String | ForEach-Object { $_.Trim() } > grin-wallet-${{ github.ref_name }}-win-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/grin-wallet-${{ github.ref_name }}-win-x86_64.zip
target/release/grin-wallet-${{ github.ref_name }}-win-x86_64-sha256sum.txt
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous Integration
on: [push]

jobs:
linux-tests:
name: Linux Tests
runs-on: ubuntu-latest
strategy:
matrix:
job_args: [api, config, controller, impls, libwallet, .]
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

0 comments on commit b46fc92

Please sign in to comment.