Search lyrics or song metadata from your terminal
genius genius-lyrics-search genius-lyrics cli rust

ci: add macos build worklow

+74
+40
.github/workflows/release-for-mac.yml
··· 1 + on: 2 + release: 3 + types: [created] 4 + 5 + jobs: 6 + release: 7 + name: release x86_64-apple-darwin 8 + runs-on: macos-latest 9 + 10 + steps: 11 + - name: Installing Rust toolchain 12 + uses: actions-rs/toolchain@v1 13 + with: 14 + toolchain: stable 15 + target: x86_64-apple-darwin 16 + override: true 17 + - name: Checking out sources 18 + uses: actions/checkout@v1 19 + - name: Running cargo build 20 + uses: actions-rs/cargo@v1 21 + with: 22 + command: build 23 + toolchain: stable 24 + args: --locked --release --target x86_64-apple-darwin" 25 + - name: Set env 26 + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV 27 + - name: Packaging final binary 28 + shell: bash 29 + run: | 30 + cd target/x86_64-apple-darwin/release 31 + tar czvf genius_${{ env.RELEASE_VERSION }}_x86_64-apple-darwin.tar.gz genius 32 + shasum -a 512 genius_${{ env.RELEASE_VERSION }}_x86_64-apple-darwin.tar.gz > genius_${{ env.RELEASE_VERSION }}_x86_64-apple-darwin.tar.gz.sha512 33 + - name: Releasing assets 34 + uses: softprops/action-gh-release@v1 35 + with: 36 + files: | 37 + target/x86_64-apple-darwin/release/genius_${{ env.RELEASE_VERSION }}_x86_64-apple-darwin.tar.gz 38 + target/x86_64-apple-darwin/release/genius_${{ env.RELEASE_VERSION }}_x86_64-apple-darwin.tar.gz.sha512 39 + env: 40 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+34
.github/workflows/release.yml
··· 25 25 with: 26 26 RUSTTARGET: ${{ matrix.target }} 27 27 ARCHIVE_TYPES: ${{ matrix.archive }} 28 + - name: Clean up 29 + run: sudo rm -rf target 30 + - name: Installing Rust toolchain 31 + if: matrix.target == 'x86_64-unknown-linux-musl' 32 + uses: actions-rs/toolchain@v1 33 + with: 34 + toolchain: stable 35 + target: x86_64-unknown-linux-gnu 36 + override: true 37 + - name: Running cargo build 38 + if: matrix.target == 'x86_64-unknown-linux-musl' 39 + uses: actions-rs/cargo@v1 40 + with: 41 + command: build 42 + toolchain: stable 43 + args: --locked --release --target x86_64-unknown-linux-gnu" 44 + - name: Set env 45 + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV 46 + - name: Packaging final binary 47 + if: matrix.target == 'x86_64-unknown-linux-musl' 48 + shell: bash 49 + run: | 50 + cd target/x86_64-unknown-linux-gnu/release 51 + tar czvf genius_${{ env.RELEASE_VERSION }}_x86_64-unknown-linux-gnu.tar.gz genius 52 + shasum -a 512 genius_${{ env.RELEASE_VERSION }}_x86_64-unknown-linux-gnu.tar.gz > genius_${{ env.RELEASE_VERSION }}_x86_64-unknown-linux-gnu.tar.gz.sha512 53 + - name: Releasing assets 54 + if: matrix.target == 'x86_64-unknown-linux-musl' 55 + uses: softprops/action-gh-release@v1 56 + with: 57 + files: | 58 + target/x86_64-unknown-linux-gnu/release/genius_${{ env.RELEASE_VERSION }}_x86_64-unknown-linux-gnu.tar.gz 59 + target/x86_64-unknown-linux-gnu/release/genius_${{ env.RELEASE_VERSION }}_x86_64-unknown-linux-gnu.tar.gz.sha512 60 + env: 61 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}