actions-test/.forgejo/workflows/demo.yaml

40 lines
647 B
YAML
Raw Permalink Normal View History

2024-02-06 21:21:33 +00:00
on:
pull_request:
push:
branches:
2024-02-06 21:58:15 +00:00
- main
2024-02-08 23:31:55 +00:00
tags:
- "v*.*.*"
2024-02-06 21:21:33 +00:00
2024-02-06 22:19:31 +00:00
env:
BINARY: example
2024-01-23 22:48:10 +00:00
jobs:
test:
runs-on: docker
2024-02-06 21:21:33 +00:00
strategy:
matrix:
info:
2024-02-06 21:58:15 +00:00
- arch: amd64
- arch: arm64v8
- arch: arm64v7
2024-01-23 22:48:10 +00:00
steps:
2024-02-08 23:31:55 +00:00
- run: env
2024-02-06 21:21:33 +00:00
- run: echo "${{ matrix.info.arch }} Good"
2024-02-06 21:58:15 +00:00
test2:
runs-on: docker
container:
image: debian:bookworm-slim
steps:
- run : echo "Hello, debian"
2024-02-06 22:19:31 +00:00
test3:
runs-on: docker
container:
image: docker.io/asonix/rust-builder:latest-linux-arm32v7
2024-02-06 22:20:04 +00:00
steps:
- run: cargo init --bin --name $BINARY
- run: build
2024-02-06 22:19:31 +00:00