-
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
Showing
1 changed file
with
31 additions
and
0 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,31 @@ | ||
# Action name | ||
name: Simple Test Action | ||
|
||
# Here, this action will be enabled on all pushes. | ||
# Modify this to fit your needs. | ||
on: | ||
push | ||
|
||
# Jobs section | ||
jobs: | ||
simple-test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: southorange/ohos-base-zig:v4.1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install | ||
run: cargo install ohrs && cargo install cargo-zigbuild | ||
|
||
- name: init project | ||
run: ohrs init hello | ||
|
||
- name: build aarch64-unknown-linux-ohos | ||
run: cd hello && cargo zigbuild --target aarch64-unknown-linux-ohos | ||
|
||
- name: build armv7-unknown-linux-ohos | ||
run: cd hello && cargo zigbuild --target armv7-unknown-linux-ohos | ||
|
||
- name: build x86_64-unknown-linux-ohos | ||
run: cd hello && cargo zigbuild --target x86_64-unknown-linux-ohos |