Build artifacts
@@ -6,8 +6,37 @@ on:
- cron: '0 4 * * *'
jobs:
+ build-transformer:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: true
+ matrix:
+ transformer: [
+ 'date-transformer',
+ 'email-transformer',
+ 'fixedtext-transformer'
+ ]
+ steps:
+ - uses: actions/checkout@v3
+ - name: Install latest stable
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ override: true
+ - name: Store built artifact
+ uses: actions/cache@v3
+ with:
+ path: replibyte/transformers/${{ matrix.transformer }}/
+ key: transformer-${{ matrix.transformer }}
+ - name: Build ${{ matrix.transformer }}
+ working-directory: replibyte/transformers/${{ matrix.transformer }}
+ run: |
+ rustup target add wasm32-wasi
+ cargo build --release --target wasm32-wasi
+
anonymize-users-db:
runs-on: ubuntu-latest
+ needs: [build-transformer]
steps:
- uses: actions/checkout@v3
- name: Configure AWS credentials
@@ -43,6 +72,25 @@ jobs:
echo "::set-output name=username::$USERNAME"
env:
SECRET_ID: ${{ secrets.RDS_CREDENTIALS_SECRET_ID }}
+
+ # Restore transformers
+ - name: Restore email transformer
+ uses: actions/cache@v3
+ with:
+ path: replibyte/transformers/email-transformer/
+ key: transformer-email-transformer
+ - name: Restore date transformer
+ uses: actions/cache@v3
+ with:
+ path: replibyte/transformers/date-transformer/
+ key: transformer-date-transformer
+ - name: Restore fixedtext transformer
+ uses: actions/cache@v3
+ with:
+ path: replibyte/transformers/fixedtext-transformer/
+ key: transformer-fixedtext-transformer
+ # End Restore transformers
+
- name: Wait for tunnel
run: while ! nc -z localhost 7777; do sleep 1; done;
- name: Anonymize Users database
