Experiment with using webdav cache #53
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: release | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| tags: | |
| - '*' | |
| jobs: | |
| job: | |
| name: ${{ matrix.os }}-${{ github.workflow }} | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-22.04-arm] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| submodules: true | |
| - uses: lukka/[email protected] | |
| - name: Restore from cache and setup vcpkg executable and data files. | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: lukka/run-vcpkg@v11 | |
| with: | |
| vcpkgJsonGlob: 'vcpkg.json' | |
| vcpkgGitCommitId: d5ec528843d29e3a52d745a64b469f810b2cedbf | |
| - name: Set up Python 3.11 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Setup system | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y linux-libc-dev liburing-dev | |
| - name: Setup pnpm | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Install Node.js | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| cache-dependency-path: './www/pnpm-lock.yaml' | |
| - name: Build | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: bash build.sh | |
| - name: Install Python dependencies | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: pip install -r test/requirements.txt | |
| - name: Install pytest dependencies | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: pip install pytest-md pytest-emoji | |
| - uses: pavelzw/pytest-action@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| emoji: false | |
| custom-arguments: -p no:sugar --benchmark-skip test --timeout=300 | |
| - name: Create Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: true | |
| artifacts: "hs5*.xz" |