|
| 1 | +env: |
| 2 | + CI_ALLOW_ROOT: '1' |
| 3 | + CI_CONFIG: ./ci/config.nix |
| 4 | + CI_PLATFORM: gh-actions |
| 5 | +jobs: |
| 6 | + ci-check: |
| 7 | + name: taimihud-datasources check |
| 8 | + runs-on: ubuntu-latest |
| 9 | + steps: |
| 10 | + - id: checkout |
| 11 | + name: git clone |
| 12 | + uses: actions/checkout@v4 |
| 13 | + with: |
| 14 | + submodules: true |
| 15 | + - id: nix-install |
| 16 | + name: nix install |
| 17 | + uses: arcnmx/ci/actions/nix/install@v0.7 |
| 18 | + - id: ci-action-build |
| 19 | + name: nix build ci.gh-actions.configFile |
| 20 | + uses: arcnmx/ci/actions/nix/build@v0.7 |
| 21 | + with: |
| 22 | + attrs: ci.gh-actions.configFile |
| 23 | + out-link: .ci/workflow.yml |
| 24 | + - id: ci-action-compare |
| 25 | + name: gh-actions compare |
| 26 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 27 | + with: |
| 28 | + args: -u .github/workflows/taimihud-datasources.yml .ci/workflow.yml |
| 29 | + attrs: nixpkgs.diffutils |
| 30 | + command: diff |
| 31 | + main: |
| 32 | + name: taimihud-datasources-main |
| 33 | + permissions: |
| 34 | + contents: write |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - id: checkout |
| 38 | + name: git clone |
| 39 | + uses: actions/checkout@v4 |
| 40 | + with: |
| 41 | + submodules: true |
| 42 | + - id: nix-install |
| 43 | + name: nix install |
| 44 | + uses: arcnmx/ci/actions/nix/install@v0.7 |
| 45 | + - id: ci-setup |
| 46 | + name: nix setup |
| 47 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 48 | + with: |
| 49 | + attrs: ci.job.main.run.bootstrap |
| 50 | + quiet: false |
| 51 | + - id: ci-dirty |
| 52 | + name: nix test dirty |
| 53 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 54 | + with: |
| 55 | + attrs: ci.job.main.run.test |
| 56 | + command: ci-build-dirty |
| 57 | + quiet: false |
| 58 | + stdout: ${{ runner.temp }}/ci.build.dirty |
| 59 | + - id: ci-test |
| 60 | + name: nix test build |
| 61 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 62 | + with: |
| 63 | + attrs: ci.job.main.run.test |
| 64 | + command: ci-build-realise |
| 65 | + ignore-exit-code: true |
| 66 | + quiet: false |
| 67 | + stdin: ${{ runner.temp }}/ci.build.dirty |
| 68 | + - env: |
| 69 | + CI_EXIT_CODE: ${{ steps.ci-test.outputs.exit-code }} |
| 70 | + id: ci-summary |
| 71 | + name: nix test results |
| 72 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 73 | + with: |
| 74 | + attrs: ci.job.main.run.test |
| 75 | + command: ci-build-summarise |
| 76 | + quiet: false |
| 77 | + stdin: ${{ runner.temp }}/ci.build.dirty |
| 78 | + stdout: ${{ runner.temp }}/ci.build.cache |
| 79 | + - env: |
| 80 | + CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} |
| 81 | + id: ci-cache |
| 82 | + if: always() |
| 83 | + name: nix test cache |
| 84 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 85 | + with: |
| 86 | + attrs: ci.job.main.run.test |
| 87 | + command: ci-build-cache |
| 88 | + quiet: false |
| 89 | + stdin: ${{ runner.temp }}/ci.build.cache |
| 90 | + - id: artifact-build |
| 91 | + name: artifact build |
| 92 | + uses: arcnmx/ci/actions/nix/build@v0.7 |
| 93 | + with: |
| 94 | + attrs: config.jobs.main.artifactPackage |
| 95 | + file: <ci> |
| 96 | + out-link: .ci/artifacts |
| 97 | + - id: artifact-upload |
| 98 | + name: artifact upload |
| 99 | + uses: actions/upload-artifact@v4 |
| 100 | + with: |
| 101 | + name: TaimiHUD-DataSources |
| 102 | + path: .ci/artifacts/share/taimihud/sources.toml |
| 103 | + - id: release-upload |
| 104 | + if: startsWith(github.ref, 'refs/tags/') |
| 105 | + name: release |
| 106 | + uses: softprops/action-gh-release@v1 |
| 107 | + with: |
| 108 | + files: .ci/artifacts/share/taimihud/sources.toml |
| 109 | + updates: |
| 110 | + name: taimihud-datasources-updates |
| 111 | + runs-on: ubuntu-latest |
| 112 | + steps: |
| 113 | + - id: checkout |
| 114 | + name: git clone |
| 115 | + uses: actions/checkout@v4 |
| 116 | + with: |
| 117 | + submodules: true |
| 118 | + - id: nix-install |
| 119 | + name: nix install |
| 120 | + uses: arcnmx/ci/actions/nix/install@v0.7 |
| 121 | + - id: ci-setup |
| 122 | + name: nix setup |
| 123 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 124 | + with: |
| 125 | + attrs: ci.job.updates.run.bootstrap |
| 126 | + quiet: false |
| 127 | + - id: ci-dirty |
| 128 | + name: nix test dirty |
| 129 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 130 | + with: |
| 131 | + attrs: ci.job.updates.run.test |
| 132 | + command: ci-build-dirty |
| 133 | + quiet: false |
| 134 | + stdout: ${{ runner.temp }}/ci.build.dirty |
| 135 | + - id: ci-test |
| 136 | + name: nix test build |
| 137 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 138 | + with: |
| 139 | + attrs: ci.job.updates.run.test |
| 140 | + command: ci-build-realise |
| 141 | + ignore-exit-code: true |
| 142 | + quiet: false |
| 143 | + stdin: ${{ runner.temp }}/ci.build.dirty |
| 144 | + - env: |
| 145 | + CI_EXIT_CODE: ${{ steps.ci-test.outputs.exit-code }} |
| 146 | + id: ci-summary |
| 147 | + name: nix test results |
| 148 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 149 | + with: |
| 150 | + attrs: ci.job.updates.run.test |
| 151 | + command: ci-build-summarise |
| 152 | + quiet: false |
| 153 | + stdin: ${{ runner.temp }}/ci.build.dirty |
| 154 | + stdout: ${{ runner.temp }}/ci.build.cache |
| 155 | + - env: |
| 156 | + CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} |
| 157 | + id: ci-cache |
| 158 | + if: always() |
| 159 | + name: nix test cache |
| 160 | + uses: arcnmx/ci/actions/nix/run@v0.7 |
| 161 | + with: |
| 162 | + attrs: ci.job.updates.run.test |
| 163 | + command: ci-build-cache |
| 164 | + quiet: false |
| 165 | + stdin: ${{ runner.temp }}/ci.build.cache |
| 166 | +name: taimihud-datasources |
| 167 | +'on': |
| 168 | +- push |
| 169 | +- pull_request |
0 commit comments