Use tar library instead of tar tool for some operations
#831
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: depexts | |
| on: | |
| pull_request: | |
| paths: | |
| - '*.opam' | |
| - 'src/state/opamSysInteract.ml' | |
| - 'src/state/opamSysPoll.ml' | |
| - '.github/workflows/depexts.yml' | |
| - '.github/scripts/depexts/**' | |
| push: | |
| branches: | |
| - 'master' | |
| - '2.**' | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| OPAMVERSION: 2.5.1 | |
| OPAM_REPO: https://github.com/ocaml/opam-repository.git | |
| OPAM_REPO_SHA: ea549f9f2496d9b1454d1cb4817bba7be9013985 | |
| jobs: | |
| opam-cache: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: opam binary cache | |
| id: binary | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: Retrieve opam binary | |
| if: steps.binary.outputs.cache-hit != 'true' | |
| run: | | |
| rm -rf binary | |
| mkdir -p binary | |
| wget https://github.com/ocaml/opam/releases/download/$OPAMVERSION/opam-$OPAMVERSION-x86_64-linux -q -O binary/opam | |
| chmod +x binary/opam | |
| depexts-alpine: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh alpine | |
| - name: depexts actions alpine | |
| uses: ./.github/actions/alpine | |
| id: depexts-alpine | |
| depexts-altlinux: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh altlinux | |
| - name: depexts actions altlinux | |
| uses: ./.github/actions/altlinux | |
| id: depexts-altlinux | |
| depexts-archlinux: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh archlinux | |
| - name: depexts actions archlinux | |
| uses: ./.github/actions/archlinux | |
| id: depexts-archlinux | |
| depexts-centos: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh centos | |
| - name: depexts actions centos | |
| uses: ./.github/actions/centos | |
| id: depexts-centos | |
| depexts-debian: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh debian | |
| - name: depexts actions debian | |
| uses: ./.github/actions/debian | |
| id: depexts-debian | |
| depexts-fedora: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh fedora | |
| - name: depexts actions fedora | |
| uses: ./.github/actions/fedora | |
| id: depexts-fedora | |
| depexts-gentoo: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh gentoo | |
| - name: depexts actions gentoo | |
| uses: ./.github/actions/gentoo | |
| id: depexts-gentoo | |
| depexts-opensuse: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh opensuse | |
| - name: depexts actions opensuse | |
| uses: ./.github/actions/opensuse | |
| id: depexts-opensuse | |
| depexts-oraclelinux: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh oraclelinux | |
| - name: depexts actions oraclelinux | |
| uses: ./.github/actions/oraclelinux | |
| id: depexts-oraclelinux | |
| depexts-nix: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh nix | |
| - name: depexts actions nix | |
| uses: ./.github/actions/nix | |
| id: depexts-nix | |
| depexts-ubuntu: | |
| needs: opam-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: opam binary cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: binary/opam | |
| key: binary-${{ env.OPAMVERSION }} | |
| - name: generate action | |
| run: | | |
| bash .github/scripts/depexts/generate-actions.sh ubuntu | |
| - name: depexts actions ubuntu | |
| uses: ./.github/actions/ubuntu | |
| id: depexts-ubuntu |