on: push jobs: build: runs-on: docker container: image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.2.1 steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ key: build-apt-decoder restore-keys: audit-apt-decoder - run: CARGO_HOME=~/.cargo cargo build --release build-windows: runs-on: docker container: image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.2.1 needs: build steps: - uses: actions/checkout@v3 - uses: actions/cache/restore@v3 with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ key: build-apt-decoder - run: CARGO_HOME=~/.cargo cargo build --target x86_64-pc-windows-gnu --release build-appimage: runs-on: docker container: image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.2.1 needs: build steps: - uses: actions/checkout@v3 - uses: actions/cache/restore@v3 with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ key: build-apt-decoder - run: CARGO_HOME=~/.cargo PATH=$PATH:$CARGO_HOME/bin x build -r --format appimage