Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version to 0.2.5 #352

Merged
merged 5 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 93 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:
- "published"

jobs:
release:
name: "Release"
cargo-release:
name: "Cargo Release"

strategy:
matrix:
platform: [ubuntu-20.04, macos-12, windows-2022]
platform: [ubuntu-20.04]
python-version: ["3.7"]
fail-fast: false
runs-on: ${{ matrix.platform }}
Expand All @@ -24,10 +24,6 @@ jobs:

- uses: r7kamura/rust-problem-matchers@v1.1.0

- name: "Build binaries"
timeout-minutes: 60
run: "cargo build --release -p dora-coordinator -p dora-cli -p dora-daemon"

- name: "Publish packages on `crates.io`"
if: runner.os == 'Linux'
run: |
Expand Down Expand Up @@ -66,16 +62,26 @@ jobs:
cargo publish -p dora-runtime --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo publish -p dora-daemon --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: "Create Archive (Unix)"
if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
mkdir archive
cp target/release/dora-coordinator archive
cp target/release/dora-daemon archive
cp target/release/dora-cli archive/dora
cd archive
zip -r ../archive.zip .
cd ..


windows-release:
name: "Windows Release"

strategy:
matrix:
platform: [windows-2022]
python-version: ["3.7"]
fail-fast: false
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0

- name: "Build binaries"
timeout-minutes: 60
run: "cargo build --release -p dora-coordinator -p dora-cli -p dora-daemon"

- name: Create Archive (Windows)
if: runner.os == 'Windows'
Expand All @@ -97,6 +103,62 @@ jobs:
asset_name: dora-${{ github.ref_name }}-x86_64-${{ runner.os }}.zip
asset_content_type: application/zip


unix-release:
name: "Unix Release"

strategy:
matrix:
platform: [macos-12, ubuntu-20.04]
python-version: ["3.7"]
fail-fast: false
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0

- name: "Build binaries"
timeout-minutes: 60
run: "cargo build --release -p dora-coordinator -p dora-cli -p dora-daemon"

- name: "Create Archive (Unix)"
if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
mkdir archive
cp target/release/dora-coordinator archive
cp target/release/dora-daemon archive
cp target/release/dora-cli archive/dora
cd archive
zip -r ../archive.zip .
cd ..

- name: "Upload release asset"
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: archive.zip
asset_name: dora-${{ github.ref_name }}-x86_64-${{ runner.os }}.zip
asset_content_type: application/zip

linux-arm-release:
name: "Linux ARM Release"

strategy:
matrix:
platform: [ubuntu-20.04]
python-version: ["3.7"]
fail-fast: false
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0

- name: "Build Linux ARM64"
if: runner.os == 'Linux'
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -127,6 +189,20 @@ jobs:
asset_name: dora-${{ github.ref_name }}-aarch64-${{ runner.os }}.zip
asset_content_type: application/zip

mac-arm-release:
name: "MacOS ARM Release"

strategy:
matrix:
platform: [macos-12]
python-version: ["3.7"]
fail-fast: false
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3

- uses: r7kamura/rust-problem-matchers@v1.1.0
- name: "Add macOS ARM64 toolchains"
if: runner.os == 'macOS'
run: rustup target add aarch64-apple-darwin
Expand Down
Loading
Loading