diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c531216..ed5ec54 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,7 +22,6 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - run: cargo check fmt: @@ -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 @@ -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 @@ -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 }} @@ -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 }} @@ -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