diff --git a/.forgejo/workflows/audit.yml b/.forgejo/workflows/audit.yml index 08a2a79..42d7546 100644 --- a/.forgejo/workflows/audit.yml +++ b/.forgejo/workflows/audit.yml @@ -6,4 +6,13 @@ jobs: image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.1.0 steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-apt-decoder-cargo - run: export CARGO_HOME=/root/.cargo && cargo audit \ No newline at end of file diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..2888ffa --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,52 @@ +on: [push] +jobs: + build: + runs-on: docker + container: + image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.1.0 + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-apt-decoder-cargo + - run: export CARGO_HOME=~/.cargo && cargo build --release + + build-windows: + runs-on: docker + container: + image: forgejo.zenerdio.de/sebastian/apt-decoder-ci:v0.1.0 + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-apt-decoder-cargo + - run: export 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.1.0 + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-apt-decoder-cargo + - run: export CARGO_HOME=~/.cargo && cargo appimage \ No newline at end of file