Skip to content

Commit

Permalink
Merge pull request #12 from gustawdaniel/10-error-decoding-response-b…
Browse files Browse the repository at this point in the history
…ody-missing-field-id-at-line-8-column-1

implementation of backoff after 429 Too Many Requests [RFC6585]
  • Loading branch information
gustawdaniel authored Mar 16, 2023
2 parents 707b0f3 + 67f5a2d commit 4d231ce
Show file tree
Hide file tree
Showing 6 changed files with 817 additions and 85 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,58 +5,6 @@ on:
types: [ created ]

jobs:
release-archives:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# - target: wasm32-wasi
# archive: tar.gz
# - target: x86_64-pc-windows-gnu
# archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: rustfmt, clippy
override: true

- name: Install clipboard deps
run: |
if [[ "${{ matrix.target }}" == "x86_64-unknown-linux-musl" ]]; then
sudo apt update
sudo apt install -y xorg-dev libxcb-composite0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
elif [[ "${{ matrix.target }}" == "x86_64-apple-darwin" ]]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/runner/.bash_profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install xcb-proto libxcb
else
echo "Unknown target: ${{ matrix.target }}"
exit 1
fi
- name: Compile
id: compile
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE"
ARCHIVE_TYPES: ${{ matrix.archive }}
TOOLCHAIN_VERSION: nightly

release-binary:
permissions:
contents: write
Expand Down
Loading

0 comments on commit 4d231ce

Please sign in to comment.