This repository was archived by the owner on Jun 17, 2025. It is now read-only.
Drop mold entirely #7
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
| on: | |
| push: | |
| paths-ignore: | |
| - "**.md" | |
| - "**.ftl" | |
| branches: | |
| - master | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "--cfg tokio_unstable -Zshare-generics=y" | |
| CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc | |
| jobs: | |
| build: | |
| name: Rust project - latest | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: | |
| - x86_64-unknown-linux-gnu | |
| - aarch64-unknown-linux-gnu | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| target: ${{ matrix.target }} | |
| - if: matrix.target == 'x86_64-unknown-linux-gnu' | |
| run: | | |
| sudo apt update | |
| sudo apt install -y --no-install-recommends pkgconf | |
| - if: matrix.target == 'aarch64-unknown-linux-gnu' | |
| run: | | |
| sudo apt update | |
| sudo apt install -y gcc-aarch64-linux-gnu pkgconf | |
| - name: Build | |
| run: cargo build --release --target ${{ matrix.target }} | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: scripty_v2-${{ matrix.target }} | |
| path: target/${{ matrix.target }}/release/scripty_v2 |