apt-decoder/.forgejo/workflows/build.yml

55 lines
1.5 KiB
YAML
Raw Permalink Normal View History

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