Skip to content

Commit

Permalink
[DONT MERGE] ci: only run the trafficserver example
Browse files Browse the repository at this point in the history
  • Loading branch information
midchildan committed Jun 15, 2024
1 parent 8f4be02 commit 34c18da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,14 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/pin.yml
secrets: inherit
generate-examples:
runs-on: [self-hosted, linux, X64]
outputs:
examples: ${{ steps.set-examples.outputs.examples }}
steps:
- name: Checkout base repo
uses: actions/checkout@v4
- id: set-examples
run: |
json=$(nix shell nixpkgs#tree -c tree -J -L 1 examples | nix shell nixpkgs#jq -c jq -c '[.[0].contents[] | .name]')
echo "examples=$json" >> $GITHUB_OUTPUT
examples:
name: ${{ matrix.example }} (${{ join(matrix.os) }})
needs: [generate-examples, build]
needs: [build]
strategy:
fail-fast: false
matrix:
os: [[self-hosted, linux, X64], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]]
example: ${{ fromJSON(needs.generate-examples.outputs.examples) }}
example: [trafficserver]
runs-on: ${{ matrix.os }}
steps:
- run: sudo rm -rf /opt&
Expand Down
4 changes: 2 additions & 2 deletions examples/trafficserver/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

services.trafficserver = {
enable = true;
package = pkgs.symlinkJoin {
package = lib.mkIf (!pkgs.stdenv.isDarwin) (pkgs.symlinkJoin {
inherit (pkgs.trafficserver) name;
paths = [ pkgs.trafficserver ];
postBuild = ''
Expand All @@ -18,7 +18,7 @@
chmod +x traffic_server
popd
'';
};
});
remap = "map / http://127.0.0.1 @plugin=generator.so";
records.proxy.config = {
proxy_name = "devenv.test";
Expand Down

0 comments on commit 34c18da

Please sign in to comment.