|
| 1 | + |
| 2 | +name: Modified Build Check |
| 3 | +jobs: |
| 4 | + RunOnLinux: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + steps: |
| 7 | + - name: Setup Python 3.10 |
| 8 | + uses: actions/setup-python@v5 |
| 9 | + with: |
| 10 | + python-version: '3.10' |
| 11 | + - name: Install dependencies |
| 12 | + run: |- |
| 13 | + python -m pip install --upgrade pip |
| 14 | + pip install inotify |
| 15 | + - name: Run inotifywait |
| 16 | + run: |- |
| 17 | + python3 -c " |
| 18 | + import inotify.adapters |
| 19 | + import inotify.constants |
| 20 | + import os |
| 21 | + from datetime import datetime, timezone |
| 22 | + with open('/home/runner/inotifywait-log-RunOnLinux.csv', 'w') as log_file: |
| 23 | + i = inotify.adapters.InotifyTree('/home/runner/work/async-http-client/async-http-client', inotify.constants.IN_CREATE | inotify.constants.IN_ACCESS) |
| 24 | + for event in i.event_gen(yield_nones=False): |
| 25 | + (_, type_names, path, filename) = event |
| 26 | + now = datetime.now(timezone.utc).strftime('%Y-%m-%dT%H:%M:%S.%f') + 'Z' |
| 27 | + events = ','.join(type_names) |
| 28 | + log_file.write(f'{now};{path};{filename};{events}\n') |
| 29 | + log_file.flush() |
| 30 | + os.fsync(log_file.fileno()) |
| 31 | + " & |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + - run: touch optcd-3.txt |
| 34 | + - name: Grant Permission |
| 35 | + run: sudo chmod +x ./mvnw |
| 36 | + - run: touch optcd-4.txt |
| 37 | + - uses: actions/setup-java@v4 |
| 38 | + with: |
| 39 | + distribution: corretto |
| 40 | + java-version: '11' |
| 41 | + - run: touch optcd-5.txt |
| 42 | + - name: Run Tests |
| 43 | + run: ./mvnw -B -ntp clean test |
| 44 | + - run: touch optcd-6.txt |
| 45 | + - name: Upload inotifywait logs |
| 46 | + uses: actions/upload-artifact@v4 |
| 47 | + with: |
| 48 | + name: inotifywait-RunOnLinux |
| 49 | + path: /home/runner/inotifywait-log-RunOnLinux.csv |
| 50 | + name: RunOnLinux |
| 51 | + RunOnMacOs: |
| 52 | + runs-on: macos-latest |
| 53 | + steps: |
| 54 | + - name: Setup Python 3.10 |
| 55 | + uses: actions/setup-python@v5 |
| 56 | + with: |
| 57 | + python-version: '3.10' |
| 58 | + - name: Install dependencies |
| 59 | + run: |- |
| 60 | + python -m pip install --upgrade pip |
| 61 | + pip install inotify |
| 62 | + - name: Run inotifywait |
| 63 | + run: |- |
| 64 | + python3 -c " |
| 65 | + import inotify.adapters |
| 66 | + import inotify.constants |
| 67 | + import os |
| 68 | + from datetime import datetime, timezone |
| 69 | + with open('/home/runner/inotifywait-log-RunOnMacOs.csv', 'w') as log_file: |
| 70 | + i = inotify.adapters.InotifyTree('/home/runner/work/async-http-client/async-http-client', inotify.constants.IN_CREATE | inotify.constants.IN_ACCESS) |
| 71 | + for event in i.event_gen(yield_nones=False): |
| 72 | + (_, type_names, path, filename) = event |
| 73 | + now = datetime.now(timezone.utc).strftime('%Y-%m-%dT%H:%M:%S.%f') + 'Z' |
| 74 | + events = ','.join(type_names) |
| 75 | + log_file.write(f'{now};{path};{filename};{events}\n') |
| 76 | + log_file.flush() |
| 77 | + os.fsync(log_file.fileno()) |
| 78 | + " & |
| 79 | + - uses: actions/checkout@v4 |
| 80 | + - run: touch optcd-3.txt |
| 81 | + - name: Grant Permission |
| 82 | + run: sudo chmod +x ./mvnw |
| 83 | + - run: touch optcd-4.txt |
| 84 | + - uses: actions/setup-java@v4 |
| 85 | + with: |
| 86 | + distribution: corretto |
| 87 | + java-version: '11' |
| 88 | + - run: touch optcd-5.txt |
| 89 | + - name: Run Tests |
| 90 | + run: ./mvnw -B -ntp clean test |
| 91 | + - run: touch optcd-6.txt |
| 92 | + - name: Upload inotifywait logs |
| 93 | + uses: actions/upload-artifact@v4 |
| 94 | + with: |
| 95 | + name: inotifywait-RunOnMacOs |
| 96 | + path: /home/runner/inotifywait-log-RunOnMacOs.csv |
| 97 | + name: RunOnMacOs |
| 98 | + RunOnWindows: |
| 99 | + runs-on: windows-latest |
| 100 | + steps: |
| 101 | + - name: Setup Python 3.10 |
| 102 | + uses: actions/setup-python@v5 |
| 103 | + with: |
| 104 | + python-version: '3.10' |
| 105 | + - name: Install dependencies |
| 106 | + run: |- |
| 107 | + python -m pip install --upgrade pip |
| 108 | + pip install inotify |
| 109 | + - name: Run inotifywait |
| 110 | + run: |- |
| 111 | + python3 -c " |
| 112 | + import inotify.adapters |
| 113 | + import inotify.constants |
| 114 | + import os |
| 115 | + from datetime import datetime, timezone |
| 116 | + with open('/home/runner/inotifywait-log-RunOnWindows.csv', 'w') as log_file: |
| 117 | + i = inotify.adapters.InotifyTree('/home/runner/work/async-http-client/async-http-client', inotify.constants.IN_CREATE | inotify.constants.IN_ACCESS) |
| 118 | + for event in i.event_gen(yield_nones=False): |
| 119 | + (_, type_names, path, filename) = event |
| 120 | + now = datetime.now(timezone.utc).strftime('%Y-%m-%dT%H:%M:%S.%f') + 'Z' |
| 121 | + events = ','.join(type_names) |
| 122 | + log_file.write(f'{now};{path};{filename};{events}\n') |
| 123 | + log_file.flush() |
| 124 | + os.fsync(log_file.fileno()) |
| 125 | + " & |
| 126 | + - uses: actions/checkout@v4 |
| 127 | + - run: touch optcd-3.txt |
| 128 | + - uses: actions/setup-java@v4 |
| 129 | + with: |
| 130 | + distribution: corretto |
| 131 | + java-version: '11' |
| 132 | + - run: touch optcd-4.txt |
| 133 | + - name: Run Tests |
| 134 | + run: ./mvnw.cmd -B -ntp clean test |
| 135 | + - run: touch optcd-5.txt |
| 136 | + - name: Upload inotifywait logs |
| 137 | + uses: actions/upload-artifact@v4 |
| 138 | + with: |
| 139 | + name: inotifywait-RunOnWindows |
| 140 | + path: /home/runner/inotifywait-log-RunOnWindows.csv |
| 141 | + name: RunOnWindows |
| 142 | +'on': |
| 143 | +- push |
| 144 | +- workflow_dispatch |
0 commit comments