fix: ssh username resolution (#298) #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build atuin-run | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "crates/atuin-run/**" | |
| - "crates/atuin-desktop-runtime/**" | |
| - ".github/workflows/atuin-run-release.yaml" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| name: Build and Upload | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: depot-ubuntu-22.04-4 | |
| target: x86_64-unknown-linux-gnu | |
| - platform: macos-latest | |
| target: aarch64-apple-darwin | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install latest rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/[email protected] | |
| - name: Build atuin-run | |
| env: | |
| RUSTC_WRAPPER: sccache | |
| run: cargo build --release --package atuin-run | |
| - name: Upload to S3 | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }} | |
| AWS_ENDPOINT_URL: ${{ vars.S3_ENDPOINT_URL }} | |
| run: | | |
| aws s3 cp target/release/atuin-run s3://${{ vars.S3_BUCKET }}/bin/main/${{ matrix.target }}/atuin-run |