Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85802863
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
7 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/.arcconfig b/.arcconfig
new file mode 100644
index 0000000..8dcc3a7
--- /dev/null
+++ b/.arcconfig
@@ -0,0 +1,4 @@
+{
+ "phabricator.uri": "https://iron.lily-is.land",
+ "repository.callsign": "VB"
+}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index 6ffdd3d..0000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,80 +0,0 @@
-name: CI
-
-on:
- workflow_dispatch:
- push:
- branches: [main]
- pull_request:
- branches: [main]
- types:
- - opened
- - reopened
- - synchronize
- - ready_for_review
-
-env:
- CARGO_TERM_COLOR: always
-
-jobs:
- style:
- name: Check style
- runs-on: ubuntu-latest
- if: github.event_name == 'push' || !github.event.pull_request.draft
-
- steps:
- - name: Checkout the repo
- uses: actions/checkout@v2
-
- - name: Install Rust
- uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- components: rustfmt
- profile: minimal
- override: true
-
- - name: Cargo fmt
- uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: -- --check
-
- typos:
- name: Spell Check with Typos
- needs: [style]
- runs-on: ubuntu-latest
- if: github.event_name == 'push' || !github.event.pull_request.draft
-
- steps:
- - name: Checkout Actions Repository
- uses: actions/checkout@v2
-
- - name: Check the spelling of the files in our repo
- uses: crate-ci/typos@master
-
- clippy:
- name: Run clippy
- needs: [style]
- runs-on: ubuntu-latest
- if: github.event_name == 'push' || !github.event.pull_request.draft
-
- steps:
- - name: Checkout the repo
- uses: actions/checkout@v2
-
- - name: Install Rust
- uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- components: clippy
- profile: minimal
- override: true
-
- - name: Load cache
- uses: Swatinem/rust-cache@v1
-
- - name: Clippy
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --all-targets -- -D warnings
diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
deleted file mode 100644
index 7f75981..0000000
--- a/.github/workflows/cpp.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: c++ tests
-
-on:
- push:
- pull_request:
- branches: [main]
-
-jobs:
- Test:
- strategy:
- matrix:
- os: [ubuntu-latest]
- runs-on: "${{ matrix.os }}"
- steps:
- - uses: actions/checkout@v2
- - name: Install gtest
- uses: MarkusJx/googletest-installer@v1.1
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: Swatinem/rust-cache@v1
- - name: Run the tests
- working-directory: ./cpp
- run: make test
diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml
deleted file mode 100644
index f292274..0000000
--- a/.github/workflows/javascript.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: Javascript tests
-
-on:
- push:
- pull_request:
- branches: [main]
-
-jobs:
- Test:
- strategy:
- matrix:
- # Windows is missing from this list as wasm-pack didn't want to work
- # on it. We should try to add it back at some point in the future.
- os: [ubuntu-latest, macos-latest]
- node: ['16']
- include:
- - os: ubuntu-latest
- node: '14'
- - os: ubuntu-latest
- node: '12'
- runs-on: "${{ matrix.os }}"
- steps:
- - uses: actions/checkout@v2
- - name: Setup node
- uses: actions/setup-node@v3
- with:
- node-version: ${{ matrix.node }}
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: Swatinem/rust-cache@v1
- - run: npm install
- working-directory: ./javascript
- - run: npm install -g wasm-pack
- - name: Run the tests
- working-directory: ./javascript
- run: npm test
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
deleted file mode 100644
index 8808719..0000000
--- a/.github/workflows/python.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: Python tests
-
-on:
- push:
- pull_request:
- branches: [main]
-
-jobs:
- Test:
- strategy:
- matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
- python-version: [3.9]
- include:
- - os: ubuntu-latest
- python-version: "3.10"
- - os: ubuntu-latest
- python-version: 3.8
- - os: ubuntu-latest
- python-version: 3.7
- runs-on: "${{ matrix.os }}"
- steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-python@v2
- with:
- python-version: ${{ matrix.python-version }}
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: Swatinem/rust-cache@v1
- - run: python3 -m pip install nox
- - name: Run nox for ${{ matrix.python-version }}
- working-directory: ./python
- run: nox -s test-${{ matrix.python-version }}
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 81370d4..92f5131 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,82 +1,43 @@
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "trigger"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: $CI_COMMIT_BRANCH
- if: '$CI_COMMIT_TAG !~ /^phabricator\//'
stages:
- - prepare
- build
- - report
-
-.report:
- image:
- name: 'reg.lily.kazv.moe/infra/phorge-ci-tools:servant'
- rules:
- - if: $TARGET_PHID
- when: always
- - when: never
- before_script:
- - pipelineUrl="$CI_PROJECT_URL"/-/pipelines/"$CI_PIPELINE_ID"
-
-report-start:
- extends: .report
- stage: prepare
- script:
- - 'echo "{\"receiver\": \"$TARGET_PHID\", \"type\": \"work\", \"unit\": [{\"name\": \"GitLab CI (information only)\", \"result\": \"skip\", \"details\": \"$pipelineUrl\", \"format\": \"remarkup\"}]}" | /tools/arcanist/bin/arc call-conduit --conduit-uri https://iron.lily-is.land/ --conduit-token "$CONDUIT_TOKEN" -- harbormaster.sendmessage'
.build:
stage: build
- image:
- name: ubuntu:24.04
+ image: docker.io/ubuntu:24.04
script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
- DEBIAN_FRONTEND=noninteractive apt-get -y install cargo build-essential g++ libolm-dev libboost-json-dev wget cmake
# catch2 is broken in ubuntu, see https://bugs.launchpad.net/ubuntu/+source/catch2/+bug/2081647
- wget https://github.com/catchorg/Catch2/archive/v3.3.2.tar.gz -O catch2.tar.gz
- tar -xf catch2.tar.gz
- cd Catch2-*
- mkdir build && cd build && \
- cmake .. -DCATCH_ENABLE_WERROR=OFF -DBUILD_TESTING=OFF
- make -j$(($(nproc) / 2)) install
- cd ../..
- rm -rf Catch2-* catch2.tar.gz
- cd cpp
- mv -v build.rs build.rs.orig
- grep -v 'cargo::rerun-if-changed' build.rs.orig > build.rs
- make BUILD_TYPE="$BUILD_TYPE" test
build:release:
extends:
- .build
before_script:
- BUILD_TYPE=release
build:debug:
extends:
- .build
before_script:
- BUILD_TYPE=debug
-
-report-success:
- extends: .report
- rules:
- - if: $TARGET_PHID
- when: on_success
- - when: never
- stage: report
- script:
- - 'echo "{\"receiver\": \"$TARGET_PHID\", \"type\": \"pass\"}" | /tools/arcanist/bin/arc call-conduit --conduit-uri https://iron.lily-is.land/ --conduit-token "$CONDUIT_TOKEN" -- harbormaster.sendmessage'
-
-report-failure:
- extends: .report
- rules:
- - if: $TARGET_PHID
- when: on_failure
- - when: never
- stage: report
- script:
- - 'echo "{\"receiver\": \"$TARGET_PHID\", \"type\": \"fail\"}" | /tools/arcanist/bin/arc call-conduit --conduit-uri https://iron.lily-is.land/ --conduit-token "$CONDUIT_TOKEN" -- harbormaster.sendmessage'
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Oct 8, 8:16 PM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1784267
Default Alt Text
(7 KB)
Attached To
Mode
rVB vodozemac-bindings
Attached
Detach File
Event Timeline
Log In to Comment