Skip to content

Commit

Permalink
Merge pull request #1318 from yubiuser/hyper
Browse files Browse the repository at this point in the history
Update hyper-rustls to 0.27 and adjust CI workflow
  • Loading branch information
roderickvd authored Sep 5, 2024
2 parents 99ef3ec + 78a8c61 commit e9234d3
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
18 changes: 15 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/[email protected]

# hyper-rustls >=0.27 uses aws-lc as default backend which requires NASM to build
- name: Install NASM
uses: ilammy/[email protected]

- name: Install toolchain
run: curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
Expand Down Expand Up @@ -229,7 +233,15 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-${{ matrix.target }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- name: Install cross
run: cargo install cross || true

- name: Install the cross compiler targets
run: rustup target add ${{ matrix.target }}

- name: Install cross compiler toolchain
run: sudo apt-get install -y gcc-arm-linux-gnueabihf

- name: Build
run: cross build --target ${{ matrix.target }} --no-default-features
run: cargo build --verbose --target ${{ matrix.target }} --no-default-features

- name: Check binary
run: file target/${{ matrix.target }}/debug/librespot
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
target
.cargo
spotify_appkey.key
.vagrant/
.project
Expand Down
Loading

0 comments on commit e9234d3

Please sign in to comment.