Skip to content

Commit

Permalink
refactor: the last commit of actions?
Browse files Browse the repository at this point in the history
  • Loading branch information
MoskalykA committed Jul 21, 2023
1 parent 32615b3 commit 35d8a72
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ jobs:
command: build
args: --release

- name: Install zip
uses: montudor/action-zip@v1

- name: Zip output
run: zip -qq -r ubuntu.zip rt
working-directory: target/release
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: "ubuntu.zip"
directory: "target/release"
path: "rt"

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand All @@ -52,12 +53,13 @@ jobs:
command: build
args: --release

- name: Install zip
uses: montudor/action-zip@v1

- name: Zip output
run: zip -qq -r windows.zip rt.exe
working-directory: target/release
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: "windows.zip"
directory: "target/release"
path: "rt.exe"

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand All @@ -82,12 +84,13 @@ jobs:
command: build
args: --release

- name: Install zip
uses: montudor/action-zip@v1

- name: Zip output
run: zip -qq -r macos.zip rt
working-directory: target/release
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: "macos.zip"
directory: "target/release"
path: "rt"

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,54 @@ jobs:
with:
command: check
args: --release

build:
name: Ubuntu build
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release

build-win:
name: Windows build
needs: check
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release

build-macos:
name: MacOs build
needs: check
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release

0 comments on commit 35d8a72

Please sign in to comment.