fix(docker): install libfontconfig1 in the runtime image #10
Workflow file for this run
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: release | |
| on: | |
| push: | |
| tags: ["v*"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| target: aarch64-apple-darwin | |
| - os: macos-latest | |
| target: x86_64-apple-darwin | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Install fontconfig dev libs (Linux only) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y pkg-config libfontconfig1-dev | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: ${{ matrix.target }} | |
| - name: Build | |
| run: cargo build --release --features stealth,screenshot --target ${{ matrix.target }} | |
| - name: Package | |
| run: | | |
| dir=aginxbrowser-v${GITHUB_REF_NAME#v}-${{ matrix.target }} | |
| mkdir "$dir" | |
| cp "target/${{ matrix.target }}/release/aginxbrowser" "$dir/" | |
| cp README.md docs/install.md "$dir/" | |
| tar czf "$dir.tar.gz" "$dir" | |
| shasum -a 256 "$dir.tar.gz" > "$dir.tar.gz.sha256" | |
| - name: Upload artifacts | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| aginxbrowser-*.tar.gz | |
| aginxbrowser-*.sha256 |