Skip to content

Commit

Permalink
fix some error in github action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Jun 6, 2024
1 parent 804b2e2 commit 793b475
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@ on:

jobs:
clippy:
runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Install clippy with stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,22 @@ on:

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: "5.10"

- uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- uses: Swatinem/rust-cache@v2

- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn request_pruchase<R: Runtime>(
unsafe {
swift_request_pruchase(
product_identifier.as_str().into(),
quantity.into(),
quantity,
application_user_name.unwrap_or_default().as_str().into(),
);
}
Expand Down

0 comments on commit 793b475

Please sign in to comment.