fix DecodeConfig in dynamic mode too #55
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: [push, pull_request] | |
| name: Test | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CGO_ENABLED: 0 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: "[macos] install libheif" | |
| if: runner.os == 'macOS' | |
| run: brew install libheif | |
| - name: "[linux] install libheif" | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libheif-dev libheif1 | |
| - name: "[windows] cache vcpkg artifacts" | |
| if: runner.os == 'Windows' | |
| uses: actions/cache@v4 | |
| id: vcpkg-cache | |
| with: | |
| path: C:\Users\runneradmin\AppData\Local\vcpkg\archives | |
| key: vcpkg-libheif-v1 | |
| - name: "[windows] install libheif" | |
| if: runner.os == 'Windows' | |
| run: | | |
| vcpkg install libheif:x64-windows | |
| vcpkg integrate install | |
| dir C:/vcpkg/installed/x64-windows/bin | |
| echo "C:/vcpkg/installed/x64-windows/bin" >> $env:GITHUB_PATH | |
| Get-ChildItem -Path "C:\vcpkg\installed\x64-windows\bin\*.dll" | Copy-Item -Destination . | |
| - name: Test | |
| run: go test -v -bench=. -benchtime=1x |