Skip to content

Update release workflow #9

Update release workflow

Update release workflow #9

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
jobs:
build-aarch64-apple-darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: aarch64-apple-darwin
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- run: ls target
- uses: actions/upload-artifact@v3
with:
name: aarch64-apple-darwin
path: upnotify/upnotify
build-x86_64-apple-darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: x86_64-apple-darwin
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v3
with:
name: x86_64-apple-darwin
path: upnotify/upnotify
build-aarch64-unknown-linux-gnu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: aarch64-unknown-linux-gnu
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v3
with:
name: aarch64-unknown-linux-gnu
path: upnotify/upnotify
build-x86_64-unknown-linux-gnu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: x86_64-unknown-linux-gnu
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v3
with:
name: x86_64-unknown-linux-gnu
path: upnotify/upnotify
build-x86_64-pc-windows-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: x86_64-pc-windows-msvc
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v3
with:
name: x86_64-pc-windows-msvc
path: upnotify/upnotify
build-aarch64-pc-windows-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: aarch64-pc-windows-msvc
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v3
with:
name: aarch64-pc-windows-msvc
path: upnotify/upnotify
archive:
runs-on: ubuntu-latest
needs:
- build-aarch64-apple-darwin
- build-x86_64-apple-darwin
- build-aarch64-unknown-linux-gnu
- build-x86_64-unknown-linux-gnu
- build-x86_64-pc-windows-msvc
- build-aarch64-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/upnotify
- uses: actions/download-artifact@v3
with:
name: x86_64-apple-darwin
path: target/x86_64-apple-darwin/release/upnotify
- uses: actions/download-artifact@v3
with:
name: aarch64-unknown-linux-gnu
path: target/aarch64-unknown-linux-gnu/release/upnotify
- uses: actions/download-artifact@v3
with:
name: x86_64-unknown-linux-gnu
path: target/x86_64-unknown-linux-gnu/release/upnotify
- uses: actions/download-artifact@v3
with:
name: x86_64-pc-windows-msvc
path: target/x86_64-pc-windows-msvc/release/upnotify
- uses: actions/download-artifact@v3
with:
name: aarch64-pc-windows-msvc
path: target/aarch64-pc-windows-msvc/release/upnotify
- uses: extractions/setup-just@v1
- uses: actions-rs/cargo@v1
with:
command: install
args: toml-cli
- run: just archive-all do-release-package-ci