Skip to content

Commit

Permalink
ci: add simple action
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu committed Jul 29, 2024
1 parent bed117b commit 3c65da1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/simple-test.yml
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

0 comments on commit 3c65da1

Please sign in to comment.