fix(fs):After the file is copied or moved, flush the cache of the directory that was copied or moved to. #651
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
| name: Test Build | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest] | |
| target: | |
| - darwin-amd64 | |
| - darwin-arm64 | |
| - windows-amd64 | |
| - linux-arm64-musl | |
| - linux-amd64-musl | |
| - windows-arm64 | |
| - android-arm64 | |
| name: Build | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: benjlevesque/[email protected] | |
| id: short-sha | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.22" | |
| - name: Setup web | |
| run: bash build.sh dev web | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build | |
| uses: OpenListTeam/[email protected] | |
| with: | |
| targets: ${{ matrix.target }} | |
| musl-target-format: $os-$musl-$arch | |
| out-dir: build | |
| x-flags: | | |
| github.com/OpenListTeam/OpenList/v4/internal/conf.BuiltAt=$built_at | |
| github.com/OpenListTeam/OpenList/v4/internal/conf.GitAuthor=OpenList | |
| github.com/OpenListTeam/OpenList/v4/internal/conf.GitCommit=$git_commit | |
| github.com/OpenListTeam/OpenList/v4/internal/conf.Version=$tag | |
| github.com/OpenListTeam/OpenList/v4/internal/conf.WebVersion=dev | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: openlist_${{ env.SHA }}_${{ matrix.target }} | |
| path: build/* |