Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jun 29, 2024
1 parent 21548b6 commit d46933f
Showing 1 changed file with 105 additions and 3 deletions.
108 changes: 105 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Move nightly tag to head for nightly release
run: git tag -f nightly && git push origin nightly -f

build-nightly-artifact:
name: Nightly Artifact Build
build-linux:
name: Linux
runs-on: ubuntu-20.04
needs: [update-nightly-tag]
if: |
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
./tuntox &
sleep 50
- name: test binary
- name: test binary with ASAN
run: |
ldd asan_tuntox_nostatic || echo ""
ls -hal asan_tuntox_nostatic
Expand Down Expand Up @@ -92,3 +92,105 @@ jobs:
replacesArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "tuntox_nightly,asan_tuntox_nostatic_nightly"

build-macos:
runs-on: macos-12
needs: [update-nightly-tag]
if: |
always() &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: install deps
run: brew install libsodium

- name: compile binary
run: |
make -j5 all
- name: compile binary with ASAN
run: |
make -j5 asan_all
- name: test binary
run: |
otool -L tuntox || echo ""
ls -hal tuntox
./tuntox -V
./tuntox &
sleep 50
- name: test binary with ASAN
run: |
otool -L asan_tuntox_nostatic || echo ""
ls -hal asan_tuntox_nostatic
./asan_tuntox_nostatic -V
./asan_tuntox_nostatic &
sleep 50
build-macos14arm:
runs-on: macos-14
needs: [update-nightly-tag]
if: |
always() &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: install deps
run: brew install libsodium

- name: compile binary
run: |
make -j5 all
- name: compile binary with ASAN
run: |
make -j5 asan_all
- name: test binary
run: |
otool -L tuntox || echo ""
ls -hal tuntox
./tuntox -V
./tuntox &
sleep 50
- name: test binary with ASAN
run: |
otool -L asan_tuntox_nostatic || echo ""
ls -hal asan_tuntox_nostatic
./asan_tuntox_nostatic -V
./asan_tuntox_nostatic &
sleep 50
build-windows:
runs-on: ubuntu-22.04
needs: [update-nightly-tag]
if: |
always() &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: install dependencies
run: |
sudo apt-get update && \
sudo DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
ca-certificates \
pkg-config
- name: compile binary
run: |
echo "WRITE ME"

0 comments on commit d46933f

Please sign in to comment.