Revert "Update CD workflow"
This reverts commit e369994b06705c9c520266feebd89422b5be90c3. `cross-rs/cross` has already updated to a newer Ubuntu version but not released their images yet, thus cross-compilation builds fail. Revert for now to get out the release. Hopefully we can reapply this change for the next release.
This commit is contained in:
23
.github/workflows/cd.yml
vendored
23
.github/workflows/cd.yml
vendored
@@ -49,9 +49,12 @@ jobs:
|
|||||||
features: '--no-default-features --features rodio_backend,pancurses_backend,share_clipboard,notify'
|
features: '--no-default-features --features rodio_backend,pancurses_backend,share_clipboard,notify'
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
profile: minimal
|
||||||
- name: Install macOS dependencies
|
- name: Install macOS dependencies
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: brew install portaudio pkg-config
|
run: brew install portaudio pkg-config
|
||||||
@@ -66,17 +69,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apt update
|
apt update
|
||||||
apt install -y ${{ matrix.dependencies }}
|
apt install -y ${{ matrix.dependencies }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v2
|
||||||
name: Checkout src
|
name: Checkout src
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/git
|
||||||
~/.cargo/git/db/
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Running cargo build
|
- name: Running cargo build
|
||||||
run: cargo build --release --target ${{ matrix.target }} ${{ matrix.features }}
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --locked --release --target ${{ matrix.target }} ${{ matrix.features }}
|
||||||
- name: Extract git tag
|
- name: Extract git tag
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
|
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
|
||||||
@@ -86,11 +91,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
case ${{ matrix.target }} in
|
case ${{ matrix.target }} in
|
||||||
*-pc-windows-*)
|
*-pc-windows-*)
|
||||||
7z -y a ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.zip ncspot.exe
|
7z -y a ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.zip ncspot.exe
|
||||||
sha256sum ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.zip > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.sha256
|
sha256sum ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.zip > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.sha256
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
tar czvf ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.tar.gz ncspot
|
tar czvf ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.tar.gz ncspot
|
||||||
shasum -a 256 ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.tar.gz > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.sha256
|
shasum -a 256 ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.tar.gz > ncspot-${{ steps.extract_tag.outputs.tag }}-${{ matrix.build_target }}.sha256
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user