Skip to content

Commit

Permalink
Fix release step.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmorpheme committed Jun 14, 2023
1 parent a419518 commit 166b2e6
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
- run: cargo check

fmt:
Expand All @@ -33,7 +32,6 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check

Expand All @@ -44,9 +42,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- run: cargo clippy -- -D warnings

Expand Down Expand Up @@ -75,9 +71,7 @@ jobs:
${{ matrix.target }}-cargo
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
targets: ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }}

Expand Down Expand Up @@ -110,9 +104,7 @@ jobs:
${{ matrix.target }}-cargo
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
targets: ${{ matrix.target }}
- run: cargo install cargo-edit
- run: cargo set-version ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
Expand All @@ -134,14 +126,16 @@ jobs:
- uses: actions/download-artifact@v2
- name: Display structure of downloaded files
run: ls -R
- name: Prepare release packages
run: |
tar -cvzf fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
tar -cvzf fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
tar -cvzf fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
draft: true
prerelease: false
files: |
fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
files: fimbl-*.tgz
generate_release_notes: true

0 comments on commit 166b2e6

Please sign in to comment.