From 5496f9b541ae554f46de5ab85e4422ed044f4a13 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 28 Apr 2023 04:28:06 +0200 Subject: Modernize CI and add aarch64-apple-darwin --- .github/workflows/build-release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 7d59df5..941d74f 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -67,6 +67,10 @@ jobs: target: x86_64-apple-darwin compress: true cargo_flags: "" + - os: macos-latest + target: aarch64-apple-darwin + compress: false + cargo_flags: "" - os: ubuntu-latest target: x86_64-unknown-freebsd compress: false @@ -74,7 +78,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -96,7 +100,7 @@ jobs: - name: Compress binaries uses: svenstaro/upx-action@v2 with: - file: target/${{ matrix.target }}/release/miniserve${{ env.EXE }} + files: target/${{ matrix.target }}/release/miniserve${{ env.EXE }} args: --best --lzma strip: false # We're stripping already in Cargo.toml if: ${{ matrix.compress }} @@ -110,7 +114,7 @@ jobs: - name: Get version from tag id: extract_version run: | - echo ::set-output name=version::${GITHUB_REF_NAME#v} + echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" shell: bash - name: Install CHANGELOG parser -- cgit v1.2.3