Skip to content

Commit c9fc2a9

Browse files
authored
Test infotheo 0.5.2 (#152)
* add infotheo 0.5.2 * rebase wrt upstream, update after nixpkgs merge
1 parent bd7cd37 commit c9fc2a9

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

.github/workflows/nix-action-8.17.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,6 +2684,63 @@ jobs:
26842684
name: Building/fetching current CI target
26852685
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.17" --argstr
26862686
job "mathcomp-finmap"
2687+
mathcomp-infotheo:
2688+
needs:
2689+
- coq
2690+
- mathcomp-analysis
2691+
runs-on: ubuntu-latest
2692+
steps:
2693+
- name: Determine which commit to initially checkout
2694+
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"target_commit=${{\
2695+
\ github.sha }}\" >> $GITHUB_ENV\nelse\n echo \"target_commit=${{ github.event.pull_request.head.sha\
2696+
\ }}\" >> $GITHUB_ENV\nfi\n"
2697+
- name: Git checkout
2698+
uses: actions/checkout@v3
2699+
with:
2700+
fetch-depth: 0
2701+
ref: ${{ env.target_commit }}
2702+
- name: Determine which commit to test
2703+
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_commit=${{\
2704+
\ github.sha }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{\
2705+
\ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\
2706+
\ | cut -f1)\n mergeable=$(git merge --no-commit --no-ff ${{ github.event.pull_request.base.sha\
2707+
\ }} > /dev/null 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n\
2708+
\ if [ -z \"$merge_commit\" -o \"x$mergeable\" != \"x0\" ]; then\n echo\
2709+
\ \"tested_commit=${{ github.event.pull_request.head.sha }}\" >> $GITHUB_ENV\n\
2710+
\ else\n echo \"tested_commit=$merge_commit\" >> $GITHUB_ENV\n fi\nfi\n"
2711+
- name: Git checkout
2712+
uses: actions/checkout@v3
2713+
with:
2714+
fetch-depth: 0
2715+
ref: ${{ env.tested_commit }}
2716+
- name: Cachix install
2717+
uses: cachix/install-nix-action@v20
2718+
with:
2719+
nix_path: nixpkgs=channel:nixpkgs-unstable
2720+
- name: Cachix setup coq-community
2721+
uses: cachix/cachix-action@v12
2722+
with:
2723+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
2724+
extraPullNames: coq, math-comp
2725+
name: coq-community
2726+
- id: stepCheck
2727+
name: Checking presence of CI target mathcomp-infotheo
2728+
run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\
2729+
\ bundle \"8.17\" --argstr job \"mathcomp-infotheo\" \\\n --dry-run 2>&1\
2730+
\ > /dev/null)\necho $nb_dry_run\necho ::set-output name=status::$(echo $nb_dry_run\
2731+
\ | grep \"built:\" | sed \"s/.*/built/\")\n"
2732+
- if: steps.stepCheck.outputs.status == 'built'
2733+
name: 'Building/fetching previous CI target: coq'
2734+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.17" --argstr
2735+
job "coq"
2736+
- if: steps.stepCheck.outputs.status == 'built'
2737+
name: 'Building/fetching previous CI target: mathcomp-analysis'
2738+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.17" --argstr
2739+
job "mathcomp-analysis"
2740+
- if: steps.stepCheck.outputs.status == 'built'
2741+
name: Building/fetching current CI target
2742+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.17" --argstr
2743+
job "mathcomp-infotheo"
26872744
mathcomp-real-closed:
26882745
needs:
26892746
- coq

.nix/nixpkgs.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fetchTarball {
2-
url = https://github.com/NixOS/nixpkgs/archive/50847470ba43e608d4b77c406ca26313229a49a0.tar.gz;
3-
sha256 = "0vk8r3ximc2wk6f1fhqrj7inax5n0z12namh249kgqr60rfhdj96";
2+
url = https://github.com/NixOS/nixpkgs/archive/3f0d72f755b5bb6357e871ed59db4500345294e5.tar.gz;
3+
sha256 = "0qrykx9mgbpmiwrdsvppaahqmcb6iv42vzs51xdwfcjlrbdpazlm";
44
}

0 commit comments

Comments
 (0)