From 79585c99526a22338204012386de71d2ade867cb Mon Sep 17 00:00:00 2001 From: angie Date: Sun, 9 Feb 2025 13:16:40 -0300 Subject: [PATCH] Update GHA --- .github/workflows/maturin_upload_pypi.yml | 18 +++++++++--------- src/rs/mapfile.rs | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/maturin_upload_pypi.yml b/.github/workflows/maturin_upload_pypi.yml index 675b9c9..6500649 100644 --- a/.github/workflows/maturin_upload_pypi.yml +++ b/.github/workflows/maturin_upload_pypi.yml @@ -20,7 +20,7 @@ jobs: matrix: target: [x86_64, x86, aarch64, armv7, s390x, ppc64le] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: '3.13' @@ -32,7 +32,7 @@ jobs: sccache: 'true' manylinux: auto - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: wheels path: dist @@ -43,7 +43,7 @@ jobs: matrix: target: [x64, x86] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: '3.13' @@ -55,7 +55,7 @@ jobs: args: --release --out dist --find-interpreter sccache: 'true' - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: wheels path: dist @@ -66,7 +66,7 @@ jobs: matrix: target: [x86_64, aarch64] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: '3.13' @@ -77,7 +77,7 @@ jobs: args: --release --out dist --find-interpreter sccache: 'true' - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: wheels path: dist @@ -85,14 +85,14 @@ jobs: sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build sdist uses: PyO3/maturin-action@v1 with: command: sdist args: --out dist - name: Upload sdist - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: wheels path: dist @@ -123,7 +123,7 @@ jobs: if: "startsWith(github.ref, 'refs/tags/')" needs: [linux, windows, macos, sdist, check_clippy_python_bindings] steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: wheels - name: Publish to PyPI diff --git a/src/rs/mapfile.rs b/src/rs/mapfile.rs index eeb68b8..a1a3ac5 100644 --- a/src/rs/mapfile.rs +++ b/src/rs/mapfile.rs @@ -283,7 +283,7 @@ impl MapFile { // A way to adjust this difference is by increasing the start of the vrom // by the difference in vram address between the first symbol and the vram // of the file. - if let Some(first_sym) = file.symbols.get(0) { + if let Some(first_sym) = file.symbols.first() { sym_vrom += first_sym.vram - file.vram; }