-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3ef81c
commit e204aa5
Showing
12 changed files
with
248 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Forgejo/Gitea Actions CI setup | ||
|
||
- run `docker build . -t jzvm` in the repository root directory | ||
- Install [forgejo-runner] on a machine, and follow the [setup guide] | ||
- Add the runner to your Codeberg/Forgejo/Gitea repo (Settings -> Actions -> Runners) | ||
|
||
[forgejo-runner]: https://code.forgejo.org/forgejo/runner/ | ||
[setup guide]: https://forgejo.org/docs/next/admin/actions/#forgejo-runner | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: [push] | ||
jobs: | ||
arm926: | ||
runs-on: | ||
# Specifying multiple entries under "runs-on" doesn't seem to work at the moment. | ||
- linux-arm926 | ||
container: | ||
# To speed things up, we use a custom base image. See .forgejo/Dockerfile | ||
image: jzvm | ||
steps: | ||
# Unfortunately, actions are written in Node.js, which doesn't run on ARMv5[1], | ||
# so we can't use actions. | ||
# [1]: https://packages.debian.org/bookworm/nodejs "dep: armv6k-support" | ||
#- uses: actions/checkout@v3 | ||
|
||
- run: | | ||
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" -b "$GITHUB_REF_NAME" jzvm | ||
cd jzvm | ||
git reset --hard "$GITHUB_SHA" | ||
cp -r /jzvm/target . | ||
- run: cd jzvm && cargo run | ||
- run: cd jzvm && cargo test | ||
- run: cd jzvm && cargo test --release | ||
|
||
arm1176: | ||
runs-on: | ||
- linux-arm1176 | ||
container: | ||
image: jzvm | ||
steps: | ||
- run: | | ||
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" -b "$GITHUB_REF_NAME" jzvm | ||
cd jzvm | ||
git reset --hard "$GITHUB_SHA" | ||
cp -r /jzvm/target . | ||
- run: cd jzvm && cargo run | ||
- run: cd jzvm && cargo test | ||
- run: cd jzvm && cargo test --release |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: [push] | ||
jobs: | ||
debug: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo apt-get update && sudo apt-get install -y git cargo | ||
- uses: actions/checkout@v3 | ||
- run: cargo run | ||
- run: cargo test | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: sudo apt-get update && sudo apt-get install -y git cargo | ||
- uses: actions/checkout@v3 | ||
- run: cargo run --release | ||
- run: cargo test --release |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# See .forgejo/README.md | ||
FROM debian:trixie | ||
|
||
RUN apt-get -o APT::Sandbox::User=root update && apt-get -o APT::Sandbox::User=root install -y rustc cargo git | ||
|
||
ADD . /jzvm | ||
WORKDIR /jzvm | ||
|
||
RUN cargo build --all-targets && cargo build --all-targets --release |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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