diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad01aff..e48b88e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,7 @@ jobs: build: strategy: matrix: - version: [1.21] + version: [1.21,'1.22'] os: [ubuntu-latest, macos-latest] name: Build runs-on: ${{ matrix.os }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..984f611 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,30 @@ +name: build-and-test +on: + push: + tags: + - "*" + +jobs: + release: + name: Build Release Assets + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.22.11 + + - name: Display the version of go that we have installed + run: go version + + - name: Display the release tag + run: echo ${{ github.event.release.tag_name }} + + - name: Build the executables + run: ./mkrel.sh anydb ${{ github.event.release.tag_name }} + + - name: List the executables + run: ls -l ./releases