Skip to content

Commit

Permalink
temporarily download tools manually until cargo-binstall works
Browse files Browse the repository at this point in the history
radhermit committed Nov 11, 2024
1 parent c6f5969 commit fd27267
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -14,15 +14,23 @@ inputs:
runs:
using: composite
steps:
- uses: cargo-bins/cargo-binstall@main
# TODO: re-enable cargo-binstall on next releases with embedded Cargo.toml binstall metadata
#- uses: cargo-bins/cargo-binstall@main
#
#- name: Install pkgcraft-tools
# shell: bash
# run: cargo binstall --target x86_64-unknown-linux-gnu pkgcraft-tools

- name: Install pkgcraft-tools
shell: bash
run: cargo binstall --target x86_64-unknown-linux-gnu pkgcraft-tools
#- name: Install pkgcruft
# shell: bash
# run: cargo binstall --target x86_64-unknown-linux-gnu pkgcruft

- name: Install pkgcruft
# TODO: remove this once the above binstall method works
- name: Install pkgcraft tools
shell: bash
run: cargo binstall --target x86_64-unknown-linux-gnu pkgcruft
run: |
curl -L https://github.com/pkgcraft/pkgcraft/releases/download/pkgcraft-tools-0.0.16/pkgcraft-tools-0.0.16-x86_64-unknown-linux-gnu.tar.xz | tar -Jxvf - -C ~/.cargo/bin
curl -L https://github.com/pkgcraft/pkgcraft/releases/download/pkgcruft-0.0.3/pkgcruft-0.0.3-x86_64-unknown-linux-gnu.tar.xz | tar -Jxvf - -C ~/.cargo/bin
- name: Cache pkgcruft
uses: actions/cache@v4

0 comments on commit fd27267

Please sign in to comment.